Skip to content

Commit 9f96662

Browse files
authored
Implement Send and Sync for Weak<T> (#3138)
1 parent f76dea0 commit 9f96662

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/libs/core/src/weak.rs

+3
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ impl<I: Interface> Weak<I> {
2323
Ok(Self(reference, PhantomData))
2424
}
2525
}
26+
27+
unsafe impl<I: Interface> Send for Weak<I> {}
28+
unsafe impl<I: Interface> Sync for Weak<I> {}

0 commit comments

Comments
 (0)