From 3921adfa947cba452509703e1662b5e2ee8eeea2 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 29 Mar 2022 16:16:29 -0700 Subject: [PATCH] Fix clippy::needless_borrow (cherry picked from commit c71567597858e1b186479ad67247fe2d810eaabe) --- src/rayon/set.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rayon/set.rs b/src/rayon/set.rs index 5a4ac97d..6749dc0d 100644 --- a/src/rayon/set.rs +++ b/src/rayon/set.rs @@ -295,7 +295,7 @@ where { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_list() - .entries(self.set1.difference(&self.set2)) + .entries(self.set1.difference(self.set2)) .finish() } } @@ -346,7 +346,7 @@ where { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_list() - .entries(self.set1.intersection(&self.set2)) + .entries(self.set1.intersection(self.set2)) .finish() } } @@ -397,7 +397,7 @@ where { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_list() - .entries(self.set1.symmetric_difference(&self.set2)) + .entries(self.set1.symmetric_difference(self.set2)) .finish() } } @@ -447,7 +447,7 @@ where S2: BuildHasher, { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_list().entries(self.set1.union(&self.set2)).finish() + f.debug_list().entries(self.set1.union(self.set2)).finish() } }