From 1e6fe71a67691c730960390a066f61f5d8124486 Mon Sep 17 00:00:00 2001 From: Filip Bachul Date: Sat, 1 Apr 2023 00:32:06 +0200 Subject: [PATCH] fix clippy warning --- milli/src/search/facet/filter.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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) => {