mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-06 19:45:29 +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> {
|
||||
paths
|
||||
.iter()
|
||||
.filter_map(|path| is_invalid_utf8(path).then(|| path))
|
||||
.filter_map(|path| is_invalid_utf8(path).then_some(path))
|
||||
.collect()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user