Make cargo fmt happy

This commit is contained in:
Clément Renault 2025-04-01 11:27:41 +02:00
parent 64477aac60
commit a0bfcf8872
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
13 changed files with 29 additions and 38 deletions

View file

@ -191,8 +191,7 @@ impl<'a> Search<'a> {
let filterable_fields = ctx.index.filterable_attributes_rules(ctx.txn)?;
// check if the distinct field is in the filterable fields
let matched_rule = matching_features(distinct, &filterable_fields);
let is_filterable =
matched_rule.is_some_and(|(_, features)| features.is_filterable());
let is_filterable = matched_rule.is_some_and(|(_, features)| features.is_filterable());
if !is_filterable {
// if not, remove the hidden fields from the filterable fields to generate the error message