Skip to content

Commit 89a9c27

Browse files
committed
fix compile error
1 parent 69a2d98 commit 89a9c27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/suspicious_operation_groupings.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ impl EarlyLintPass for SuspiciousOperationGroupings {
7979
// m, (the number of distinct `BinOpKind`s in `binops`)
8080
// will often be small, and does have an upper limit.
8181
binops.iter().map(|b| b.op).for_each(|op| {
82-
if !op_types.contains(op) {
82+
if !op_types.contains(&op) {
8383
op_types.push(op);
8484
}
8585
});

0 commit comments

Comments
 (0)