From fefe55eb7ea16624e686fcb488611c8b24d087c8 Mon Sep 17 00:00:00 2001 From: Alex Hamilton Date: Sun, 27 Jan 2019 15:41:22 -0600 Subject: [PATCH] wilcard_match_arm: run rustfmt. --- clippy_lints/src/matches.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/clippy_lints/src/matches.rs b/clippy_lints/src/matches.rs index 15af1c6f383e..1bdc680c4481 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! { @@ -462,12 +462,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", + ); } } }