From ed4d7b7143f1a8a9602698ca3e60e18bbb4dd226 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 6 Jul 2020 11:34:44 -0400 Subject: Clean up merge_k_nearest*() interface a bit --- benches/benches.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'benches') diff --git a/benches/benches.rs b/benches/benches.rs index caed17c..ddf227a 100644 --- a/benches/benches.rs +++ b/benches/benches.rs @@ -88,7 +88,7 @@ fn bench_nearest_neighbors(c: &mut Criterion) { group.bench_function("merge_k_nearest_within", |b| b.iter_batched( || Vec::with_capacity(3), |mut n| { - index.merge_k_nearest_within(&target, 3, &mut n, 0.1); + index.merge_k_nearest_within(&target, 3, 0.1, &mut n); n }, BatchSize::SmallInput, -- cgit v1.2.3