Skip to content

Commit

Permalink
Fix clippy::needless_borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Mar 29, 2022
1 parent 18b8a6f commit c715675
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rayon/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down Expand Up @@ -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()
}
}
Expand Down Expand Up @@ -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()
}
}
Expand Down Expand Up @@ -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()
}
}

Expand Down

0 comments on commit c715675

Please sign in to comment.