Skip to content

Commit 11f396c

Browse files
committed
Implement Sync for LateStatic<T> only if T is Sync too
1 parent 9916669 commit 11f396c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub struct LateStatic<T> {
2727
}
2828

2929
unsafe impl<T: Send> core::marker::Send for LateStatic<T> {}
30-
unsafe impl<T: Send> core::marker::Sync for LateStatic<T> {}
30+
unsafe impl<T: Sync> core::marker::Sync for LateStatic<T> {}
3131

3232
impl<T> LateStatic<T> {
3333
/// Construct a LateStatic.

0 commit comments

Comments
 (0)