Make clippy happy (again)

This commit is contained in:
Clément Renault
2023-02-09 13:21:20 +01:00
parent 4570d5bf3a
commit 764df24b7d
2 changed files with 5 additions and 6 deletions

View File

@ -214,8 +214,7 @@ impl SearchRules {
map.iter()
.filter(|(pattern, _)| pattern.matches_str(index))
.max_by_key(|(pattern, _)| (pattern.is_exact(), pattern.len()))
.map(|(_, rule)| rule.clone())
.flatten()
.and_then(|(_, rule)| rule.clone())
}
}
}