diff --git a/src/algorithm/neighbour/bbd_tree.rs b/src/algorithm/neighbour/bbd_tree.rs index 632da86..85e6628 100644 --- a/src/algorithm/neighbour/bbd_tree.rs +++ b/src/algorithm/neighbour/bbd_tree.rs @@ -134,7 +134,7 @@ impl BBDTree { return self.filter( self.nodes[node].lower.unwrap(), centroids, - &mut new_candidates, + &new_candidates, newk, sums, counts, @@ -142,7 +142,7 @@ impl BBDTree { ) + self.filter( self.nodes[node].upper.unwrap(), centroids, - &mut new_candidates, + &new_candidates, newk, sums, counts, diff --git a/src/lib.rs b/src/lib.rs index 85aa3b8..80da506 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -74,7 +74,6 @@ clippy::type_complexity, clippy::needless_lifetimes, clippy::too_many_arguments, - clippy::unnecessary_mut_passed, clippy::let_and_return, clippy::many_single_char_names, )]