From b63f54115072fee5f0056abcc2baa5d1b0801d2d Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Wed, 5 Mar 2025 11:46:17 +0100 Subject: [PATCH] impl Send Sync for GenericFile --- core/io/generic.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/io/generic.rs b/core/io/generic.rs index 32c8c3828..1c0a5b6ff 100644 --- a/core/io/generic.rs +++ b/core/io/generic.rs @@ -48,6 +48,9 @@ pub struct GenericFile { file: RefCell, } +unsafe impl Send for GenericFile {} +unsafe impl Sync for GenericFile {} + impl File for GenericFile { // Since we let the OS handle the locking, file locking is not supported on the generic IO implementation // No-op implementation allows compilation but provides no actual file locking.