From b780e0c289080526a940c1d06fbe337cd81ec8b4 Mon Sep 17 00:00:00 2001 From: Luis Moreno Date: Sun, 8 Nov 2020 23:22:18 -0400 Subject: [PATCH] Fix clippy::unnecessary_mut_passed --- src/algorithm/neighbour/bbd_tree.rs | 4 ++-- src/lib.rs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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, )]