Update milli/src/search/criteria/attribute.rs

Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
Many 2021-04-27 17:39:03 +02:00 committed by GitHub
parent 3b1358b62f
commit 329bd4a1bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -304,9 +304,7 @@ impl<'t, 'q> QueryLevelIterator<'t, 'q> {
/// and from eventual chainned QueryLevelIterator. /// and from eventual chainned QueryLevelIterator.
fn next(&mut self, allowed_candidates: &RoaringBitmap, tree_level: TreeLevel) -> heed::Result<Option<(u32, u32, RoaringBitmap)>> { fn next(&mut self, allowed_candidates: &RoaringBitmap, tree_level: TreeLevel) -> heed::Result<Option<(u32, u32, RoaringBitmap)>> {
let parent_result = match self.parent.as_mut() { let parent_result = match self.parent.as_mut() {
Some(parent) => { Some(parent) => Some(parent.next(allowed_candidates, tree_level)?),
Some(parent.next(allowed_candidates, tree_level)?)
},
None => None, None => None,
}; };