Skip to content

Commit 0f3cfdb

Browse files
committed
Fix another clippy issue
1 parent c5dc05d commit 0f3cfdb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/checks/repeated_bool.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ impl Visitor for RepeatedBoolVisitor {
8585

8686
for operand in &operands {
8787
if is_pure(operand) {
88-
let is_duplicate = seen.iter().any(|prev| *prev == *operand);
89-
if is_duplicate {
88+
if seen.contains(operand) {
9089
// Build a fix that removes ` || operand` by
9190
// deleting from the previous operand's end
9291
// to this operand's end.

0 commit comments

Comments
 (0)