Apply clippy suggestion

This commit is contained in:
Dirkjan Ochtman 2021-01-19 11:06:06 +01:00
parent baf7863fd2
commit cffb0f8992
1 changed files with 5 additions and 2 deletions

View File

@ -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 };