From 09e55694247f1a9494374e99574cc65bace706e7 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 12 Oct 2021 15:40:49 -0400 Subject: Fix some clippy lints --- src/kd.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kd.rs') diff --git a/src/kd.rs b/src/kd.rs index 49b7711..332cabd 100644 --- a/src/kd.rs +++ b/src/kd.rs @@ -186,7 +186,7 @@ impl KdTree { /// Iterate over the items stored in this tree. pub fn iter(&self) -> Iter { - (&self).into_iter() + self.into_iter() } /// Rebalance this k-d tree. @@ -457,7 +457,7 @@ impl FlatKdTree { /// Iterate over the items stored in this tree. pub fn iter(&self) -> FlatIter { - (&self).into_iter() + self.into_iter() } } -- cgit v1.2.3