fix: resolve Clippy warnings across all workspace targets
This commit is contained in:
@@ -330,12 +330,12 @@ fn vm_init_failure_is_returned_as_structured_boot_failure() {
|
||||
let mut host = HeadlessHost::new();
|
||||
|
||||
let error = host.boot(&dir).expect_err("invalid PBX must fail boot");
|
||||
assert!(matches!(
|
||||
error,
|
||||
HostError::BootFailed { report: Some(CrashReport::VmInit { .. }), .. }
|
||||
));
|
||||
let HostError::BootFailed { report: Some(report), .. } = error else {
|
||||
panic!("expected structured boot failure: {error:?}");
|
||||
};
|
||||
assert!(matches!(report.as_ref(), CrashReport::VmInit { .. }));
|
||||
assert_eq!(host.get_state().status, HostExecutionStatus::Faulted);
|
||||
assert!(matches!(host.get_fault(), Some(CrashReport::VmInit { .. })));
|
||||
assert_eq!(host.get_fault().as_ref(), Some(report.as_ref()));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user