diff --git a/milli/src/search/facet/filter.rs b/milli/src/search/facet/filter.rs index c660a3858..32515fcde 100644 --- a/milli/src/search/facet/filter.rs +++ b/milli/src/search/facet/filter.rs @@ -324,14 +324,10 @@ impl<'a> Filter<'a> { Ok(RoaringBitmap::new()) } } else { - match fid.value() { - attribute => { - Err(fid.as_external_error(FilterError::AttributeNotFilterable { - attribute, - filterable_fields: filterable_fields.clone(), - }))? - } - } + Err(fid.as_external_error(FilterError::AttributeNotFilterable { + attribute: fid.value(), + filterable_fields: filterable_fields.clone(), + }))? } } FilterCondition::Or(subfilters) => {