diff --git a/clippy_lints/src/matches.rs b/clippy_lints/src/matches.rs index 3d95b8f32714..308401229ac7 100644 --- a/clippy_lints/src/matches.rs +++ b/clippy_lints/src/matches.rs @@ -528,12 +528,13 @@ fn check_wild_err_arm(cx: &LateContext<'_, '_>, ex: &Expr<'_>, arms: &[Arm<'_>]) then { // `Err(_)` or `Err(_e)` arm with `panic!` found span_note_and_lint(cx, - MATCH_WILD_ERR_ARM, - arm.pat.span, - &format!("`Err({})` will match all errors, maybe not a good idea", &ident_bind_name), - arm.pat.span, - "to remove this warning, match each error separately \ - or use `unreachable!` macro"); + MATCH_WILD_ERR_ARM, + arm.pat.span, + &format!("`Err({})` will match all errors, maybe not a good idea", &ident_bind_name), + arm.pat.span, + "to remove this warning, match each error separately \ + or use `unreachable!` macro" + ); } } }