Make clippy happy (again)

This commit is contained in:
Clément Renault 2023-02-09 13:21:20 +01:00
parent 4570d5bf3a
commit 764df24b7d
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
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())
}
}
}