[fuzz] rustfmt of the host targets

This commit is contained in:
2026-12-04 12:36:17 +01:00
parent e0b7456bd5
commit a65bc54878
2 changed files with 12 additions and 3 deletions
+9 -2
View File
@@ -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"
);
}
});