mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-15 01:18:31 +00:00
Fix clippy::unnecessary_filter_map
warnings
This commit is contained in:
parent
52252b15d6
commit
53af1dc32d
@ -35,13 +35,7 @@ fn all_jobs_not_missing_any_jobs() {
|
|||||||
.as_mapping()
|
.as_mapping()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.keys()
|
.keys()
|
||||||
.filter_map(|k| {
|
.filter(|k| !exceptions.contains(&k.as_str().unwrap_or_default()))
|
||||||
if exceptions.contains(&k.as_str().unwrap_or_default()) {
|
|
||||||
None
|
|
||||||
} else {
|
|
||||||
Some(k)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.map(ToOwned::to_owned)
|
.map(ToOwned::to_owned)
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user