1
0
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:
einfachIrgendwer0815 2025-01-30 18:26:00 +01:00
parent 52252b15d6
commit 53af1dc32d
No known key found for this signature in database
GPG Key ID: 58D55E5F117DA873

View File

@ -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<_>>();