From 95cc500e9d4ff3bc707438b6a5e11397c232cd61 Mon Sep 17 00:00:00 2001 From: ThibsG Date: Fri, 10 Jan 2020 15:09:37 +0100 Subject: [PATCH] Fix formatting --- clippy_lints/src/matches.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/clippy_lints/src/matches.rs b/clippy_lints/src/matches.rs index 3d95b8f32..308401229 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" + ); } } }