]> git.lizzy.rs Git - rust.git/commitdiff
Run rustfmt
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Fri, 17 Mar 2017 16:19:47 +0000 (17:19 +0100)
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Fri, 17 Mar 2017 16:19:47 +0000 (17:19 +0100)
clippy_lints/src/matches.rs

index 90b616b20d4b01a098155d14dfa3271f148894ae..420005d209289fef0118e8c96f825b923b9b9ae5 100644 (file)
@@ -219,10 +219,10 @@ fn report_single_match_single_pattern(cx: &LateContext, ex: &Expr, arms: &[Arm],
         db.span_suggestion(expr.span,
                            "try this",
                            format!("if let {} = {} {}{}",
-                                    snippet(cx, arms[0].pats[0].span, ".."),
-                                    snippet(cx, ex.span, ".."),
-                                    expr_block(cx, &arms[0].body, None, ".."),
-                                    els_str));
+                                   snippet(cx, arms[0].pats[0].span, ".."),
+                                   snippet(cx, ex.span, ".."),
+                                   expr_block(cx, &arms[0].body, None, ".."),
+                                   els_str));
     });
 }