build criteria from settings

This commit is contained in:
Kerollmops
2021-03-02 11:58:32 +01:00
parent 025835c5b2
commit f118d7e067
3 changed files with 74 additions and 19 deletions

View File

@ -56,7 +56,7 @@ impl<'t> Criterion for Fetcher<'t> {
let should_get_documents_ids = take(&mut self.should_get_documents_ids);
match &mut self.candidates {
Allowed(candidates) => {
Allowed(_) => {
let candidates = take(&mut self.candidates).into_inner();
let candidates = match &self.query_tree {
Some(qt) if should_get_documents_ids => {