mirror of https://github.com/zkat/cacache-rs.git
clippy fix lines-filter-map-ok
This commit is contained in:
parent
f81e92082c
commit
6155d1cab9
|
|
@ -325,7 +325,7 @@ fn bucket_entries(bucket: &Path) -> std::io::Result<Vec<SerializableMetadata>> {
|
||||||
.map(|file| {
|
.map(|file| {
|
||||||
BufReader::new(file)
|
BufReader::new(file)
|
||||||
.lines()
|
.lines()
|
||||||
.filter_map(std::result::Result::ok)
|
.map_while(std::result::Result::ok)
|
||||||
.filter_map(|entry| {
|
.filter_map(|entry| {
|
||||||
let entry_str = match entry.split('\t').collect::<Vec<&str>>()[..] {
|
let entry_str = match entry.split('\t').collect::<Vec<&str>>()[..] {
|
||||||
[hash, entry_str] if hash_entry(entry_str) == hash => entry_str,
|
[hash, entry_str] if hash_entry(entry_str) == hash => entry_str,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue