diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2020-06-27 17:44:36 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2020-06-27 17:44:36 -0400 |
commit | 49be082296367f90ca717a6cd4100d57823d8b78 (patch) | |
tree | f6fd67f5474f0c13f02b2985f5574dfc9ba63d37 /src/kd.rs | |
parent | 07e61231dff21fda6da32929c0eae82fa44f6517 (diff) | |
download | acap-49be082296367f90ca717a6cd4100d57823d8b78.tar.xz |
Fix some clippy lints
Diffstat (limited to 'src/kd.rs')
-rw-r--r-- | src/kd.rs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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() { |