Skip to content

Commit 058fe74

Browse files
committed
Fix formatting
1 parent 4af02b3 commit 058fe74

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

clippy_lints/src/matches.rs

+7-6
Original file line numberDiff line numberDiff line change
@@ -528,12 +528,13 @@ fn check_wild_err_arm(cx: &LateContext<'_, '_>, ex: &Expr<'_>, arms: &[Arm<'_>])
528528
then {
529529
// `Err(_)` or `Err(_e)` arm with `panic!` found
530530
span_note_and_lint(cx,
531-
MATCH_WILD_ERR_ARM,
532-
arm.pat.span,
533-
&format!("`Err({})` will match all errors, maybe not a good idea", &ident_bind_name),
534-
arm.pat.span,
535-
"to remove this warning, match each error separately \
536-
or use `unreachable!` macro");
531+
MATCH_WILD_ERR_ARM,
532+
arm.pat.span,
533+
&format!("`Err({})` will match all errors, maybe not a good idea", &ident_bind_name),
534+
arm.pat.span,
535+
"to remove this warning, match each error separately \
536+
or use `unreachable!` macro"
537+
);
537538
}
538539
}
539540
}

0 commit comments

Comments
 (0)