Apply clippy suggestion

This commit is contained in:
Dirkjan Ochtman 2021-10-25 11:44:08 +02:00
parent 6a7ae03ee9
commit 563d5cbcbf
1 changed files with 1 additions and 2 deletions

View File

@ -495,7 +495,6 @@ impl<'a, P: Point> Construction<'a, P> {
self.zero[pid]
.write()
.rewrite(found.iter().map(|candidate| candidate.pid));
node.set(i, pid);
} else {
// Find the correct index to insert at to keep the neighbor's neighbors sorted
let old = &self.points[pid];
@ -514,8 +513,8 @@ impl<'a, P: Point> Construction<'a, P> {
.unwrap_or_else(|e| e);
self.zero[pid].write().insert(idx, new);
node.set(i, pid);
}
node.set(i, pid);
}
#[cfg(feature = "indicatif")]