From 9f96662e695c6789adfde146e327e8feaa96d3c5 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Tue, 2 Jul 2024 07:28:33 -0500 Subject: [PATCH] Implement `Send` and `Sync` for `Weak` (#3138) --- crates/libs/core/src/weak.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/libs/core/src/weak.rs b/crates/libs/core/src/weak.rs index 677543d6e7..be34d02868 100644 --- a/crates/libs/core/src/weak.rs +++ b/crates/libs/core/src/weak.rs @@ -23,3 +23,6 @@ impl Weak { Ok(Self(reference, PhantomData)) } } + +unsafe impl Send for Weak {} +unsafe impl Sync for Weak {}