Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Apr 2, 2024
1 parent 8022a31 commit cfd3085
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/scan/launchers/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cfd3085

Please sign in to comment.