[fuzz] rustfmt of the host targets
This commit is contained in:
@@ -102,7 +102,10 @@ fuzz_target!(|data: &[u8]| {
|
||||
6 => {
|
||||
let late = now.saturating_add(Duration::from_secs(u64::from(flags)));
|
||||
let fired = s.handle_timeout(late);
|
||||
assert_eq!(fired, matches!(s.state(), HostPairingState::Failed(_)) && !matches!(before, HostPairingState::Failed(_)));
|
||||
assert_eq!(
|
||||
fired,
|
||||
matches!(s.state(), HostPairingState::Failed(_)) && !matches!(before, HostPairingState::Failed(_))
|
||||
);
|
||||
None
|
||||
}
|
||||
_ => {
|
||||
@@ -136,6 +139,10 @@ fuzz_target!(|data: &[u8]| {
|
||||
if let HostPairingState::Failed(_) = before {
|
||||
assert_eq!(s.state(), before, "Failed is terminal");
|
||||
}
|
||||
assert_eq!(s.poll_timeout().is_none(), matches!(s.state(), HostPairingState::Failed(_)), "a deadline while in progress");
|
||||
assert_eq!(
|
||||
s.poll_timeout().is_none(),
|
||||
matches!(s.state(), HostPairingState::Failed(_)),
|
||||
"a deadline while in progress"
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user