File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use clippy_utils::diagnostics::span_lint_and_sugg;
22use clippy_utils:: source:: snippet;
33use clippy_utils:: visitors:: { for_each_expr, Descend } ;
44use rustc_errors:: Applicability ;
5- use rustc_hir:: * ;
5+ use rustc_hir:: { Expr , ExprKind , MatchSource } ;
66use rustc_lint:: { LateContext , LateLintPass , LintContext } ;
77use rustc_middle:: lint:: in_external_macro;
88use rustc_session:: declare_lint_pass;
@@ -87,7 +87,7 @@ impl<'tcx> LateLintPass<'tcx> for StackedIfMatch {
8787 STACKED_IF_MATCH ,
8888 expr. span . with_hi ( sub_expr. span . hi ( ) ) ,
8989 format ! ( "avoid using `{keyword} {keyword}` by binding inner `{keyword}` with `let`" ) ,
90- format ! ( "try" ) ,
90+ "try" ,
9191 format ! ( "let result = {inner_snippet}; {keyword} result" ) ,
9292 Applicability :: MachineApplicable ,
9393 ) ;
You can’t perform that action at this time.
0 commit comments