diff options
Diffstat (limited to 'src/knn.rs')
-rw-r--r-- | src/knn.rs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2,6 +2,8 @@ use crate::distance::{Distance, Proximity}; +use alloc::vec::Vec; + /// A nearest neighbor. #[derive(Clone, Copy, Debug)] pub struct Neighbor<V, D> { @@ -351,6 +353,8 @@ pub mod tests { use rand::prelude::*; + use alloc::vec; + type Point = Euclidean<[f32; 3]>; /// Test an [ExactNeighbors] implementation. |