From cffb0f8992f314f593c0ef2c9761215007274c10 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 19 Jan 2021 11:06:06 +0100 Subject: [PATCH] Apply clippy suggestion --- src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 01371af..38c05f5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -223,11 +223,14 @@ where let mut zero = Vec::with_capacity(points.len()); zero.push(ZeroNode::default()); + let mut insertion = Search { + ef: ef_construction, + ..Default::default() + }; + let mut pool = SearchPool::default(); let mut batch = Vec::new(); let mut done = Vec::new(); - let mut insertion = Search::default(); - insertion.ef = ef_construction; let max_batch_len = num_cpus::get() * 4; for (layer, mut range) in ranges { let num = if layer.0 > 0 { M } else { M * 2 };