fix scsi_recovery test: dereference status in pattern match

This commit is contained in:
MattJackson
2026-04-28 21:17:11 -07:00
parent a126f31b70
commit 2e602f7e37
+1 -1
View File
@@ -39,7 +39,7 @@ fn test_sgio_transport_timeout_does_not_kill_transport() {
assert!(result.is_err(), "expected Err on timeout, got {:?}", result);
let err = result.unwrap_err();
assert!(
matches!(&err, libfreemkv::Error::ScsiError { status, .. } if status == &SCSI_STATUS_TRANSPORT_FAILURE),
matches!(&err, libfreemkv::Error::ScsiError { status, .. } if *status == SCSI_STATUS_TRANSPORT_FAILURE),
"expected ScsiError(TRANSPORT_FAILURE), got {:?}",
err
);