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) {
|
fn check_handled_event(res: HandlerResult, expected: Event, expected_num_sent: u32) {
|
||||||
assert!(matches!(res, HandlerResult::Handled { .. }));
|
assert!(matches!(res, HandlerResult::Handled { .. }));
|
||||||
match res {
|
if let HandlerResult::Handled(num_recipients, event) = res {
|
||||||
HandlerResult::Handled(num_recipients, event) => {
|
|
||||||
assert_eq!(event, expected);
|
assert_eq!(event, expected);
|
||||||
assert_eq!(num_recipients, expected_num_sent);
|
assert_eq!(num_recipients, expected_num_sent);
|
||||||
}
|
}
|
||||||
_ => (),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
Reference in New Issue
Block a user