From 64ecca0d122fad50cb78cef00ac5b579f1d9c881 Mon Sep 17 00:00:00 2001 From: MattJackson <1085847+MattJackson@users.noreply.github.com> 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,