summaryrefslogtreecommitdiffstats
path: root/src/kd.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/kd.rs')
-rw-r--r--src/kd.rs4
1 files changed, 2 insertions, 2 deletions
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<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()
}
}