From 0c0f35dc1afb13b3783de453bc423aed7cf354a5 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 19 Jan 2021 11:03:42 +0100 Subject: [PATCH] Fix formatting --- src/lib.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 359ce52..5422284 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -489,13 +489,7 @@ trait Layer { /// M * 2 links per node), but for performance reasons we often call this function on the data /// representation matching the zero layer even when we're referring to a higher layer. In that /// case, we use `links` to constrain the number of per-candidate links we consider for search. - fn search( - &self, - point: &P, - search: &mut Search, - points: &[P], - links: usize, - ) { + fn search(&self, point: &P, search: &mut Search, points: &[P], links: usize) { while let Some(Reverse(candidate)) = search.candidates.pop() { if let Some(furthest) = search.nearest.last() { if candidate.distance > furthest.distance {