From 329bd4a1bbe4ddfe408fb33611f7d7d8e6d91661 Mon Sep 17 00:00:00 2001 From: Many Date: Tue, 27 Apr 2021 17:39:03 +0200 Subject: [PATCH] Update milli/src/search/criteria/attribute.rs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Clément Renault --- milli/src/search/criteria/attribute.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/milli/src/search/criteria/attribute.rs b/milli/src/search/criteria/attribute.rs index 8f2e34ca9..62e992fad 100644 --- a/milli/src/search/criteria/attribute.rs +++ b/milli/src/search/criteria/attribute.rs @@ -304,9 +304,7 @@ impl<'t, 'q> QueryLevelIterator<'t, 'q> { /// and from eventual chainned QueryLevelIterator. fn next(&mut self, allowed_candidates: &RoaringBitmap, tree_level: TreeLevel) -> heed::Result> { let parent_result = match self.parent.as_mut() { - Some(parent) => { - Some(parent.next(allowed_candidates, tree_level)?) - }, + Some(parent) => Some(parent.next(allowed_candidates, tree_level)?), None => None, };