Skip to content

Commit baa8a75

Browse files
committed
Make OP_REF lint suggestion MaybeIncorrect
cc #2597
1 parent 4976ddd commit baa8a75

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
@@ -155,7 +155,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EqOp {
155155
left.span,
156156
"use the left value directly",
157157
lsnip,
158-
Applicability::MachineApplicable, // snippet
158+
Applicability::MaybeIncorrect, // FIXME #2597
159159
);
160160
})
161161
}
@@ -173,7 +173,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EqOp {
173173
right.span,
174174
"use the right value directly",
175175
rsnip,
176-
Applicability::MachineApplicable, // snippet
176+
Applicability::MaybeIncorrect, // FIXME #2597
177177
);
178178
})
179179
}

0 commit comments

Comments
 (0)