Make clippy happy

This commit is contained in:
Clément Renault
2023-11-23 12:20:44 +01:00
parent 462b4c0080
commit 0dbf1a16ff
24 changed files with 68 additions and 89 deletions

View File

@ -163,7 +163,7 @@ impl<Q: RankingRuleQueryTrait> GeoSort<Q> {
// computing the distance between two points is expensive thus we cache the result
documents
.sort_by_cached_key(|(_, p)| distance_between_two_points(&self.point, p) as usize);
self.cached_sorted_docids.extend(documents.into_iter());
self.cached_sorted_docids.extend(documents);
};
Ok(())