From ee6e14993dd9d448a3952a4401bcb08ef5776966 Mon Sep 17 00:00:00 2001 From: Ryan1729 Date: Sat, 7 Nov 2020 21:28:10 -0700 Subject: [PATCH] fix compile error --- clippy_lints/src/suspicious_operation_groupings.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/suspicious_operation_groupings.rs b/clippy_lints/src/suspicious_operation_groupings.rs index a6760e04c7ca..cccd24ccf940 100644 --- a/clippy_lints/src/suspicious_operation_groupings.rs +++ b/clippy_lints/src/suspicious_operation_groupings.rs @@ -79,7 +79,7 @@ impl EarlyLintPass for SuspiciousOperationGroupings { // m, (the number of distinct `BinOpKind`s in `binops`) // will often be small, and does have an upper limit. binops.iter().map(|b| b.op).for_each(|op| { - if !op_types.contains(op) { + if !op_types.contains(&op) { op_types.push(op); } });