From a67ed2635b0bfcba6873b205376c16ab25d76ba8 Mon Sep 17 00:00:00 2001 From: Matthew Jackson Date: Fri, 24 Apr 2026 12:21:43 -0700 Subject: [PATCH] fix(windows): Rust 2024 requires unsafe extern blocks Missed in the prior 2024 edition sweep because local builds don't exercise the cfg(target_os = "windows") path. check-windows CI caught it. --- src/scsi/windows.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scsi/windows.rs b/src/scsi/windows.rs index 92767eb..e5e64e4 100644 --- a/src/scsi/windows.rs +++ b/src/scsi/windows.rs @@ -56,7 +56,7 @@ struct SptwbDirect { // ── Windows FFI ──────────────────────────────────────────────────────────── -extern "system" { +unsafe extern "system" { fn CreateFileW( lpFileName: *const u16, dwDesiredAccess: u32,