From 563d5cbcbf2f1edf79bc8fdfa72fb2f801764e1d Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 25 Oct 2021 11:44:08 +0200 Subject: [PATCH] Apply clippy suggestion --- instant-distance/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/instant-distance/src/lib.rs b/instant-distance/src/lib.rs index 6b5f481..819283f 100644 --- a/instant-distance/src/lib.rs +++ b/instant-distance/src/lib.rs @@ -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")]