Skip to content

Commit

Permalink
Merge pull request #503 from ouch-org/fix-clippy-warnings
Browse files Browse the repository at this point in the history
fix clippy warning
  • Loading branch information
marcospb19 authored Sep 7, 2023
2 parents 674816a + c32cbd8 commit 3706f0d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

0 comments on commit 3706f0d

Please sign in to comment.