clippy fix lines-filter-map-ok

This commit is contained in:
Christian Haynes 2023-08-01 19:30:19 -04:00
parent f81e92082c
commit 6155d1cab9
1 changed files with 1 additions and 1 deletions

View File

@ -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,