fix: fix compilation warnings when running only with default features (#160)
* fix: fix compilation warnings when running only with default features Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
This commit is contained in:
+2
-2
@@ -17,7 +17,7 @@ default = ["datasets"]
|
|||||||
ndarray-bindings = ["ndarray"]
|
ndarray-bindings = ["ndarray"]
|
||||||
nalgebra-bindings = ["nalgebra"]
|
nalgebra-bindings = ["nalgebra"]
|
||||||
datasets = []
|
datasets = []
|
||||||
fp_bench = []
|
fp_bench = ["itertools"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ndarray = { version = "0.15", optional = true }
|
ndarray = { version = "0.15", optional = true }
|
||||||
@@ -27,7 +27,7 @@ num = "0.4"
|
|||||||
rand = "0.8"
|
rand = "0.8"
|
||||||
rand_distr = "0.4"
|
rand_distr = "0.4"
|
||||||
serde = { version = "1", features = ["derive"], optional = true }
|
serde = { version = "1", features = ["derive"], optional = true }
|
||||||
itertools = "0.10.3"
|
itertools = { version = "0.10.3", optional = true }
|
||||||
|
|
||||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||||
getrandom = { version = "0.2", features = ["js"] }
|
getrandom = { version = "0.2", features = ["js"] }
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#![allow(non_snake_case)]
|
|
||||||
use itertools::Itertools;
|
|
||||||
///
|
///
|
||||||
/// # FastPair: Data-structure for the dynamic closest-pair problem.
|
/// # FastPair: Data-structure for the dynamic closest-pair problem.
|
||||||
///
|
///
|
||||||
@@ -177,6 +175,7 @@ impl<'a, T: RealNumber, M: Matrix<T>> FastPair<'a, T, M> {
|
|||||||
///
|
///
|
||||||
#[cfg(feature = "fp_bench")]
|
#[cfg(feature = "fp_bench")]
|
||||||
pub fn closest_pair_brute(&self) -> PairwiseDistance<T> {
|
pub fn closest_pair_brute(&self) -> PairwiseDistance<T> {
|
||||||
|
use itertools::Itertools;
|
||||||
let m = self.samples.shape().0;
|
let m = self.samples.shape().0;
|
||||||
|
|
||||||
let mut closest_pair = PairwiseDistance {
|
let mut closest_pair = PairwiseDistance {
|
||||||
|
|||||||
Reference in New Issue
Block a user