mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Make clippy happy (again)
This commit is contained in:
parent
4570d5bf3a
commit
764df24b7d
2 changed files with 5 additions and 6 deletions
|
@ -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())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue