summaryrefslogtreecommitdiffstats
path: root/src/kd.rs
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-06-27 17:44:36 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-06-27 17:44:36 -0400
commit49be082296367f90ca717a6cd4100d57823d8b78 (patch)
treef6fd67f5474f0c13f02b2985f5574dfc9ba63d37 /src/kd.rs
parent07e61231dff21fda6da32929c0eae82fa44f6517 (diff)
downloadacap-49be082296367f90ca717a6cd4100d57823d8b78.tar.xz
Fix some clippy lints
Diffstat (limited to 'src/kd.rs')
-rw-r--r--src/kd.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kd.rs b/src/kd.rs
index 2a9ecb4..c29dd80 100644
--- a/src/kd.rs
+++ b/src/kd.rs
@@ -251,6 +251,12 @@ impl<T: Coordinates> KdTree<T> {
}
}
+impl<T: Coordinates> Default for KdTree<T> {
+ fn default() -> Self {
+ Self::new()
+ }
+}
+
impl<T: Coordinates> Extend<T> for KdTree<T> {
fn extend<I: IntoIterator<Item = T>>(&mut self, items: I) {
if self.root.is_some() {