Skip to content

Commit

Permalink
Minor cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ordovicia committed Nov 29, 2018
1 parent 007a7af commit 09380f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/kdtree.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use crate::heap_element::HeapElement;
use num_traits::{Float, One, Zero};
use std;
use std::collections::BinaryHeap;

use num_traits::{Float, One, Zero};

use crate::heap_element::HeapElement;
use crate::util;

#[cfg_attr(feature = "serialize", derive(Serialize, Deserialize))]
Expand Down Expand Up @@ -358,7 +359,8 @@ where
{
type Item = (A, &'b T);
fn next(&mut self) -> Option<(A, &'b T)> {
use crate::util::distance_to_space;
use util::distance_to_space;

let distance = self.distance;
let point = self.point;
while !self.pending.is_empty()
Expand Down
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ where

#[cfg(test)]
mod tests {
use super::super::distance::squared_euclidean;
use super::distance_to_space;
use crate::distance::squared_euclidean;
use std::f64::{INFINITY, NEG_INFINITY};

#[test]
Expand Down

0 comments on commit 09380f9

Please sign in to comment.