clippy improvement
This commit is contained in:
parent
8c94c5300d
commit
ab7ef418f6
@ -158,13 +158,10 @@ mod tests {
|
||||
|
||||
fn check_handled_event(res: HandlerResult, expected: Event, expected_num_sent: u32) {
|
||||
assert!(matches!(res, HandlerResult::Handled { .. }));
|
||||
match res {
|
||||
HandlerResult::Handled(num_recipients, event) => {
|
||||
if let HandlerResult::Handled(num_recipients, event) = res {
|
||||
assert_eq!(event, expected);
|
||||
assert_eq!(num_recipients, expected_num_sent);
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Loading…
Reference in New Issue
Block a user