From 41441fcbc4bc097a59383d88f0f79dbf64f66c9b Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 24 Oct 2021 12:04:33 -0400 Subject: Update to the 2021 edition --- Cargo.toml | 2 +- src/forest.rs | 2 +- src/soft.rs | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 43bb9dd..f8c2b8b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "kd-forest" version = "2.0.0" authors = ["Tavian Barnes "] -edition = "2018" +edition = "2021" [dependencies] acap = "0.3.0" diff --git a/src/forest.rs b/src/forest.rs index d4f5083..28ccb24 100644 --- a/src/forest.rs +++ b/src/forest.rs @@ -5,7 +5,7 @@ use acap::kd::FlatKdTree; use acap::knn::{NearestNeighbors, Neighborhood}; use acap::vp::FlatVpTree; -use std::iter::{self, Extend, FromIterator}; +use std::iter; /// The number of bits dedicated to the flat buffer. const BUFFER_BITS: usize = 6; diff --git a/src/soft.rs b/src/soft.rs index 694d0e7..4ce4204 100644 --- a/src/soft.rs +++ b/src/soft.rs @@ -8,7 +8,6 @@ use acap::knn::{NearestNeighbors, Neighborhood}; use acap::vp::FlatVpTree; use std::iter; -use std::iter::FromIterator; use std::mem; /// A trait for objects that can be soft-deleted. -- cgit v1.2.3