]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_lint/unused.rs
remove `_with_applicability` from suggestion fns
[rust.git] / src / librustc_lint / unused.rs
index a6cc7c2daeeecdfb13357bf44ec391d298f2c795..acf5da1e1886aa8820e241b78e0a1e7d86718808 100644 (file)
@@ -366,12 +366,12 @@ fn remove_outer_parens(cx: &EarlyContext, span: Span, pattern: &str, msg: &str)
                     _ => false,
                 }
             }).to_owned();
-        err.span_suggestion_short_with_applicability(
-                span,
-                "remove these parentheses",
-                parens_removed,
-                Applicability::MachineApplicable
-            );
+        err.span_suggestion_short(
+            span,
+            "remove these parentheses",
+            parens_removed,
+            Applicability::MachineApplicable,
+        );
         err.emit();
     }
 }