diff --git a/src/index.rs b/src/index.rs index e5e73e3..fe3be0f 100644 --- a/src/index.rs +++ b/src/index.rs @@ -325,7 +325,7 @@ fn bucket_entries(bucket: &Path) -> std::io::Result> { .map(|file| { BufReader::new(file) .lines() - .filter_map(std::result::Result::ok) + .map_while(std::result::Result::ok) .filter_map(|entry| { let entry_str = match entry.split('\t').collect::>()[..] { [hash, entry_str] if hash_entry(entry_str) == hash => entry_str,