Skip to content

Commit fefe55e

Browse files
committed
wilcard_match_arm: run rustfmt.
1 parent a7476d2 commit fefe55e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

clippy_lints/src/matches.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ declare_clippy_lint! {
197197
/// ```rust
198198
/// match x {
199199
/// A => {},
200-
/// _ => {}
200+
/// _ => {},
201201
/// }
202202
/// ```
203203
declare_clippy_lint! {
@@ -462,12 +462,14 @@ fn check_wild_err_arm(cx: &LateContext<'_, '_>, ex: &Expr, arms: &[Arm]) {
462462
fn check_wild_match(cx: &LateContext<'_, '_>, arms: &[Arm]) {
463463
for arm in arms {
464464
if is_wild(&arm.pats[0]) {
465-
span_note_and_lint(cx,
465+
span_note_and_lint(
466+
cx,
466467
WILDCARD_MATCH_ARM,
467468
arm.pats[0].span,
468469
"wildcard match will miss any future added variants.",
469470
arm.pats[0].span,
470-
"to resolve, match each variant explicitly");
471+
"to resolve, match each variant explicitly",
472+
);
471473
}
472474
}
473475
}

0 commit comments

Comments
 (0)