mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-07 12:05:46 +00:00
fix: apply clippy lint
This commit is contained in:
parent
a1c943923c
commit
996e597c1f
@ -31,7 +31,7 @@ mod utf8 {
|
|||||||
pub fn get_invalid_utf8_paths(paths: &[PathBuf]) -> Vec<&PathBuf> {
|
pub fn get_invalid_utf8_paths(paths: &[PathBuf]) -> Vec<&PathBuf> {
|
||||||
paths
|
paths
|
||||||
.iter()
|
.iter()
|
||||||
.filter_map(|path| is_invalid_utf8(path).then(|| path))
|
.filter_map(|path| is_invalid_utf8(path).then_some(path))
|
||||||
.collect()
|
.collect()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user