Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan1729 committed Nov 8, 2020
1 parent 80ccd5d commit ee6e149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/suspicious_operation_groupings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
Expand Down

0 comments on commit ee6e149

Please sign in to comment.