]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/int_plus_one.rs
Auto merge of #4551 - mikerite:fix-ice-reporting, r=llogiq
[rust.git] / clippy_lints / src / int_plus_one.rs
index 22ebf562d3ba16fd5eb98265d88b912aec30c5ec..c886743533f8949514b1ad00388e1210acfb6c5a 100644 (file)
@@ -158,7 +158,7 @@ fn emit_warning(self, cx: &EarlyContext<'_>, block: &Expr, recommendation: Strin
             |db| {
                 db.span_suggestion(
                     block.span,
-                    "change `>= y + 1` to `> y` as shown",
+                    "change it to",
                     recommendation,
                     Applicability::MachineApplicable, // snippet
                 );