mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 09:03:18 +00:00
Downgrade op_ref to a MaybeIncorrect suggestion
This commit is contained in:
parent
b94f2e89fd
commit
49374a4380
1 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EqOp {
|
||||||
left.span,
|
left.span,
|
||||||
"use the left value directly",
|
"use the left value directly",
|
||||||
lsnip,
|
lsnip,
|
||||||
Applicability::MachineApplicable, // snippet
|
Applicability::MaybeIncorrect, // FIXME #2597
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
} else if !lcpy
|
} else if !lcpy
|
||||||
|
@ -136,7 +136,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EqOp {
|
||||||
right.span,
|
right.span,
|
||||||
"use the right value directly",
|
"use the right value directly",
|
||||||
rsnip,
|
rsnip,
|
||||||
Applicability::MachineApplicable, // snippet
|
Applicability::MaybeIncorrect, // FIXME #2597
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue