Merge pull request #503 from ouch-org/fix-clippy-warnings

fix clippy warning
This commit is contained in:
João Marcos 2023-09-07 16:11:57 -03:00 committed by GitHub
commit 3706f0dcb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,9 +29,6 @@ mod utf8 {
/// Filter out list of paths that are not utf8 valid
pub fn get_invalid_utf8_paths(paths: &[PathBuf]) -> Vec<&PathBuf> {
paths
.iter()
.filter_map(|path| is_invalid_utf8(path).then_some(path))
.collect()
paths.iter().filter(|path| is_invalid_utf8(path)).collect()
}
}