diff options
| author | ThibsG <thebaek1@hotmail.com> | 2020-01-10 15:09:37 +0100 |
|---|---|---|
| committer | ThibsG <thebaek1@hotmail.com> | 2020-01-13 16:25:35 +0100 |
| commit | 95cc500e9d4ff3bc707438b6a5e11397c232cd61 (patch) | |
| tree | 93653b70795a1549c842568f565e963f2b177fc0 | |
| parent | e5c9073f9c60095f9900f6826563c28858433d45 (diff) | |
| download | rust-95cc500e9d4ff3bc707438b6a5e11397c232cd61.tar.gz rust-95cc500e9d4ff3bc707438b6a5e11397c232cd61.zip | |
Fix formatting
| -rw-r--r-- | clippy_lints/src/matches.rs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/clippy_lints/src/matches.rs b/clippy_lints/src/matches.rs index 3d95b8f3271..308401229ac 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" + ); } } } |
