Make clippy happy

This commit is contained in:
Kerollmops 2023-06-22 18:26:38 +02:00 committed by Clément Renault
parent 9917bf046a
commit b132e859f7
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4
2 changed files with 4 additions and 5 deletions

View File

@ -582,7 +582,7 @@ pub fn perform_search(
if fields.iter().all(|f| f != "*") {
let fields: Vec<_> = fields
.into_iter()
.iter()
.map(|n| {
(
n,

View File

@ -296,7 +296,7 @@ impl<'a> FacetDistribution<'a> {
}
.into());
} else {
facets.into_iter().map(|(name, _)| name).cloned().collect()
facets.iter().map(|(name, _)| name).cloned().collect()
}
}
None => filterable_fields,
@ -351,7 +351,7 @@ impl<'a> FacetDistribution<'a> {
}
.into());
} else {
facets.into_iter().map(|(name, _)| name).cloned().collect()
facets.iter().map(|(name, _)| name).cloned().collect()
}
}
None => filterable_fields,
@ -363,8 +363,7 @@ impl<'a> FacetDistribution<'a> {
let order_by = self
.facets
.as_ref()
.map(|facets| facets.get(name).copied())
.flatten()
.and_then(|facets| facets.get(name).copied())
.unwrap_or(self.default_order_by);
let values = self.facet_values(fid, order_by)?;
distribution.insert(name.to_string(), values);