From 51c237f9d83f7adb6375174c50e4ecb8603a6cc8 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Mon, 28 Sep 2020 13:39:17 +0200 Subject: [PATCH] Fix the benchmarks compilation --- benches/search.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benches/search.rs b/benches/search.rs index 922c9ec66..b958f9ae0 100644 --- a/benches/search.rs +++ b/benches/search.rs @@ -28,7 +28,7 @@ fn bench_search(c: &mut criterion::Criterion) { group.bench_with_input(BenchmarkId::from_parameter(query), &query, |b, &query| { b.iter(|| { let rtxn = env.read_txn().unwrap(); - let _documents_ids = index.search(&rtxn, query).unwrap(); + let _documents_ids = index.search(&rtxn).query(*query).execute().unwrap(); }); }); }