diff options
Diffstat (limited to 'src/kd.rs')
-rw-r--r-- | src/kd.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -186,7 +186,7 @@ impl<T: Coordinates> KdTree<T> { /// Iterate over the items stored in this tree. pub fn iter(&self) -> Iter<T> { - (&self).into_iter() + self.into_iter() } /// Rebalance this k-d tree. @@ -457,7 +457,7 @@ impl<T: Coordinates> FlatKdTree<T> { /// Iterate over the items stored in this tree. pub fn iter(&self) -> FlatIter<T> { - (&self).into_iter() + self.into_iter() } } |