about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Hamilton <alex.hamilton@ou.edu>2019-01-27 15:41:22 -0600
committerAlex Hamilton <alex.hamilton@ou.edu>2019-01-29 15:33:04 -0600
commit6bc4416b2b41a9d655cef8de0ee3ef0d5632bbb1 (patch)
tree7c0a0d3e4fa84d731b3b5b9c1f589072079981fb
parentc75dfeb29bc9e8e259382fe8af3917e43f07a9e4 (diff)
downloadrust-6bc4416b2b41a9d655cef8de0ee3ef0d5632bbb1.tar.gz
rust-6bc4416b2b41a9d655cef8de0ee3ef0d5632bbb1.zip
wilcard_match_arm: run rustfmt.
-rw-r--r--clippy_lints/src/matches.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/clippy_lints/src/matches.rs b/clippy_lints/src/matches.rs
index 024c88b368c..0245b5a1362 100644
--- a/clippy_lints/src/matches.rs
+++ b/clippy_lints/src/matches.rs
@@ -197,7 +197,7 @@ declare_clippy_lint! {
 /// ```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",
+            );
         }
     }
 }