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:31:13 +02:00 committed by GitHub
parent 498c2b298c
commit b3d6c6a9a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,9 +77,7 @@ impl<'t> Criterion for Attribute<'t> {
}, },
} }
} else { } else {
let found_candidates = set_compute_candidates(self.ctx, flattened_query_tree, candidates, wdcache)?; match set_compute_candidates(self.ctx, flattened_query_tree, candidates, wdcache)? {
match found_candidates {
Some(candidates) => candidates, Some(candidates) => candidates,
None => { None => {
return Ok(Some(CriterionResult { return Ok(Some(CriterionResult {