From 49374a4380a36b8fdde479bd2358dec78dd463fe Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Wed, 25 Sep 2019 14:53:20 -0700 Subject: [PATCH] Downgrade op_ref to a MaybeIncorrect suggestion --- clippy_lints/src/eq_op.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/eq_op.rs b/clippy_lints/src/eq_op.rs index 9c8380ab7..ae372b8d5 100644 --- a/clippy_lints/src/eq_op.rs +++ b/clippy_lints/src/eq_op.rs @@ -118,7 +118,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EqOp { left.span, "use the left value directly", lsnip, - Applicability::MachineApplicable, // snippet + Applicability::MaybeIncorrect, // FIXME #2597 ); }) } else if !lcpy @@ -136,7 +136,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EqOp { right.span, "use the right value directly", rsnip, - Applicability::MachineApplicable, // snippet + Applicability::MaybeIncorrect, // FIXME #2597 ); }, )