From d1e7f0826b8a9aad4bbc9450f33ca777025fff93 Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Wed, 5 Mar 2025 11:44:04 +0100 Subject: [PATCH] impl Send Sync for WindowsFile --- core/io/windows.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/io/windows.rs b/core/io/windows.rs index 3c2c44129..9bfd523a9 100644 --- a/core/io/windows.rs +++ b/core/io/windows.rs @@ -48,6 +48,9 @@ pub struct WindowsFile { file: RefCell, } +unsafe impl Send for WindowsFile {} +unsafe impl Sync for WindowsFile {} + impl File for WindowsFile { fn lock_file(&self, exclusive: bool) -> Result<()> { unimplemented!()