From 254a7806cc0bc51d9e38de5c57a211616776a90f Mon Sep 17 00:00:00 2001 From: Hidehito Yabuuchi Date: Thu, 29 Nov 2018 16:17:02 +0900 Subject: [PATCH] cargo fix --edition --- src/kdtree.rs | 6 +++--- src/lib.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/kdtree.rs b/src/kdtree.rs index d19bd52..728b61b 100644 --- a/src/kdtree.rs +++ b/src/kdtree.rs @@ -1,8 +1,8 @@ -use heap_element::HeapElement; +use crate::heap_element::HeapElement; use num_traits::{Float, One, Zero}; use std; use std::collections::BinaryHeap; -use util; +use crate::util; #[cfg_attr(feature = "serialize", derive(Serialize, Deserialize))] #[derive(Debug)] @@ -358,7 +358,7 @@ where { type Item = (A, &'b T); fn next(&mut self) -> Option<(A, &'b T)> { - use util::distance_to_space; + use crate::util::distance_to_space; let distance = self.distance; let point = self.point; while !self.pending.is_empty() diff --git a/src/lib.rs b/src/lib.rs index 54808ab..8b186ec 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -61,5 +61,5 @@ pub mod distance; mod heap_element; pub mod kdtree; mod util; -pub use kdtree::ErrorKind; -pub use kdtree::KdTree; +pub use crate::kdtree::ErrorKind; +pub use crate::kdtree::KdTree;