summaryrefslogtreecommitdiffstats
path: root/src/vp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/vp.rs')
-rw-r--r--src/vp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vp.rs b/src/vp.rs
index 965f484..3e1a8ad 100644
--- a/src/vp.rs
+++ b/src/vp.rs
@@ -198,7 +198,7 @@ impl<T: Proximity> VpTree<T> {
/// Iterate over the items stored in this tree.
pub fn iter(&self) -> Iter<T> {
- (&self).into_iter()
+ self.into_iter()
}
/// Rebalance this VP tree.
@@ -505,7 +505,7 @@ impl<T: Proximity> FlatVpTree<T> {
/// Iterate over the items stored in this tree.
pub fn iter(&self) -> FlatIter<T> {
- (&self).into_iter()
+ self.into_iter()
}
}