Fix formatting
This commit is contained in:
parent
e5c9073f9c
commit
95cc500e9d
@ -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"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user