Make Clippy happy

This commit is contained in:
Kerollmops 2023-05-29 15:51:00 +02:00 committed by Clément Renault
parent a385642ec3
commit d9fea0143f
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 8 additions and 9 deletions

View file

@ -110,8 +110,7 @@ where
ControlFlow::Break(_) => return Ok(()),
}
} else {
let starting_key =
FacetGroupKey { field_id, level: level.0 - 1, left_bound: left_bound };
let starting_key = FacetGroupKey { field_id, level: level.0 - 1, left_bound };
for el in db.range(rtxn, &(&starting_key..)).unwrap().take(group_size as usize) {
let (key, value) = el.unwrap();
// The range is unbounded on the right and the group size for the highest level is MAX,