Skip to content

Commit 49374a4

Browse files
committed
Downgrade op_ref to a MaybeIncorrect suggestion
1 parent b94f2e8 commit 49374a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/eq_op.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EqOp {
118118
left.span,
119119
"use the left value directly",
120120
lsnip,
121-
Applicability::MachineApplicable, // snippet
121+
Applicability::MaybeIncorrect, // FIXME #2597
122122
);
123123
})
124124
} else if !lcpy
@@ -136,7 +136,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EqOp {
136136
right.span,
137137
"use the right value directly",
138138
rsnip,
139-
Applicability::MachineApplicable, // snippet
139+
Applicability::MaybeIncorrect, // FIXME #2597
140140
);
141141
},
142142
)

0 commit comments

Comments
 (0)