Fix macOS build: mark MacScsiTransport as Send

IOKit COM interface pointers are Mach port references, safe to send
between threads. The Send bound added in 0.8.1 broke macOS builds.
This commit is contained in:
MattJackson
2026-04-13 00:22:19 +00:00
parent 077e4d018f
commit c43ba06b5b
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -168,6 +168,9 @@ pub struct MacScsiTransport {
exclusive: bool,
}
// IOKit COM interface pointers are Mach port references — safe to send between threads.
unsafe impl Send for MacScsiTransport {}
impl MacScsiTransport {
pub fn open(device: &Path) -> Result<Self> {
let dev_str = device.to_str().ok_or_else(|| Error::DeviceNotFound {