We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69a2d98 commit 89a9c27Copy full SHA for 89a9c27
clippy_lints/src/suspicious_operation_groupings.rs
@@ -79,7 +79,7 @@ impl EarlyLintPass for SuspiciousOperationGroupings {
79
// m, (the number of distinct `BinOpKind`s in `binops`)
80
// will often be small, and does have an upper limit.
81
binops.iter().map(|b| b.op).for_each(|op| {
82
- if !op_types.contains(op) {
+ if !op_types.contains(&op) {
83
op_types.push(op);
84
}
85
});
0 commit comments