summaryrefslogtreecommitdiffstats
path: root/src/kd.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/kd.rs')
-rw-r--r--src/kd.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/kd.rs b/src/kd.rs
index bf6b7c6..49b7711 100644
--- a/src/kd.rs
+++ b/src/kd.rs
@@ -9,7 +9,6 @@ use crate::util::Ordered;
use num_traits::Signed;
use std::iter::FromIterator;
-use std::ops::Deref;
/// A node in a k-d tree.
#[derive(Debug)]
@@ -158,11 +157,11 @@ where
}
fn left(self) -> Option<Self> {
- self.left.as_ref().map(Box::deref)
+ self.left.as_deref()
}
fn right(self) -> Option<Self> {
- self.right.as_ref().map(Box::deref)
+ self.right.as_deref()
}
}