summaryrefslogtreecommitdiffstats
path: root/src/kd.rs
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-10-12 15:40:49 -0400
committerTavian Barnes <tavianator@tavianator.com>2021-10-12 15:40:49 -0400
commit09e55694247f1a9494374e99574cc65bace706e7 (patch)
treef60ddf5716a04721934fcc841789920116c90b8d /src/kd.rs
parent845dc470e959893422b6117f934e3c9cae3f4bd6 (diff)
downloadacap-09e55694247f1a9494374e99574cc65bace706e7.tar.xz
Fix some clippy lints
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()
}
}