We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5dc05d commit 0f3cfdbCopy full SHA for 0f3cfdb
src/checks/repeated_bool.rs
@@ -85,8 +85,7 @@ impl Visitor for RepeatedBoolVisitor {
85
86
for operand in &operands {
87
if is_pure(operand) {
88
- let is_duplicate = seen.iter().any(|prev| *prev == *operand);
89
- if is_duplicate {
+ if seen.contains(operand) {
90
// Build a fix that removes ` || operand` by
91
// deleting from the previous operand's end
92
// to this operand's end.
0 commit comments