mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-14 17:08:37 +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()
|
||||
.unwrap()
|
||||
.keys()
|
||||
.filter_map(|k| {
|
||||
if exceptions.contains(&k.as_str().unwrap_or_default()) {
|
||||
None
|
||||
} else {
|
||||
Some(k)
|
||||
}
|
||||
})
|
||||
.filter(|k| !exceptions.contains(&k.as_str().unwrap_or_default()))
|
||||
.map(ToOwned::to_owned)
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user