]> git.lizzy.rs Git - rust.git/commitdiff
wilcard_match_arm: run rustfmt.
authorAlex Hamilton <alex.hamilton@ou.edu>
Sun, 27 Jan 2019 21:41:22 +0000 (15:41 -0600)
committerAlex Hamilton <alex.hamilton@ou.edu>
Tue, 29 Jan 2019 21:33:04 +0000 (15:33 -0600)
clippy_lints/src/matches.rs

index 024c88b368c508beec05a6c6c9a6710d53d8b7eb..0245b5a1362e1bb10ea3aec25c29cfd6a4a09bc5 100644 (file)
 /// ```rust
 /// match x {
 ///     A => {},
-///     _ => {}
+///     _ => {},
 /// }
 /// ```
 declare_clippy_lint! {
@@ -466,12 +466,14 @@ fn check_wild_err_arm(cx: &LateContext<'_, '_>, ex: &Expr, arms: &[Arm]) {
 fn check_wild_match(cx: &LateContext<'_, '_>, arms: &[Arm]) {
     for arm in arms {
         if is_wild(&arm.pats[0]) {
-            span_note_and_lint(cx,
+            span_note_and_lint(
+                cx,
                 WILDCARD_MATCH_ARM,
                 arm.pats[0].span,
                 "wildcard match will miss any future added variants.",
                 arm.pats[0].span,
-                "to resolve, match each variant explicitly");
+                "to resolve, match each variant explicitly",
+            );
         }
     }
 }