From 778ecf98fe81634b8050cc1e6189da9a8a4e1fc5 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Fri, 9 Feb 2024 09:35:07 +0100 Subject: [PATCH] Apply suggestions from clippy 1.76 --- instant-distance/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/instant-distance/src/lib.rs b/instant-distance/src/lib.rs index a9f06f6..9647b0d 100644 --- a/instant-distance/src/lib.rs +++ b/instant-distance/src/lib.rs @@ -155,7 +155,7 @@ where &'a self, point: &P, search: &'a mut Search, - ) -> impl Iterator> + ExactSizeIterator + 'a { + ) -> impl ExactSizeIterator> + 'a { self.hnsw .search(point, search) .map(move |item| MapItem::from(item, self)) @@ -353,7 +353,7 @@ where &'b self, point: &P, search: &'a mut Search, - ) -> impl Iterator> + ExactSizeIterator + 'a { + ) -> impl ExactSizeIterator> + 'a { search.reset(); let map = move |candidate| Item::new(candidate, self); if self.points.is_empty() { @@ -759,7 +759,7 @@ impl Search { &self.nearest } - fn iter(&self) -> impl Iterator + ExactSizeIterator + '_ { + fn iter(&self) -> impl ExactSizeIterator + '_ { self.nearest.iter().copied() } }