From 53af1dc32d507daf4ecdce9639e52f6e9dbbfd04 Mon Sep 17 00:00:00 2001 From: einfachIrgendwer0815 <85333734+einfachIrgendwer0815@users.noreply.github.com> Date: Thu, 30 Jan 2025 18:26:00 +0100 Subject: [PATCH] Fix `clippy::unnecessary_filter_map` warnings --- tests/github-actions.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/github-actions.rs b/tests/github-actions.rs index c902f10b..d697ddf8 100644 --- a/tests/github-actions.rs +++ b/tests/github-actions.rs @@ -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::>();