From cfd308590bf0964b29df0ca29c77ef53140fda19 Mon Sep 17 00:00:00 2001 From: mtkennerly Date: Tue, 2 Apr 2024 11:17:59 -0400 Subject: [PATCH] Fix lint --- src/scan/launchers/generic.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/scan/launchers/generic.rs b/src/scan/launchers/generic.rs index 7986e592..9792de00 100644 --- a/src/scan/launchers/generic.rs +++ b/src/scan/launchers/generic.rs @@ -142,9 +142,7 @@ pub fn scan(root: &RootsConfig, manifest: &Manifest, subjects: &[String]) -> Has subjects .iter() .filter_map(|name| { - let Some((score, subdir)) = by_title.get(name) else { - return None; - }; + let (score, subdir) = by_title.get(name)?; if *score < i64::MAX { if let Some(competitors) = by_subdir.get(subdir) {