Skip to content

Commit

Permalink
Merge pull request #2 from Richard-W/bugfix/sync-impl
Browse files Browse the repository at this point in the history
Implement Sync for LateStatic<T> only if T is Sync too
  • Loading branch information
Richard-W authored Nov 12, 2020
2 parents 9916669 + 11f396c commit 185c5b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub struct LateStatic<T> {
}

unsafe impl<T: Send> core::marker::Send for LateStatic<T> {}
unsafe impl<T: Send> core::marker::Sync for LateStatic<T> {}
unsafe impl<T: Sync> core::marker::Sync for LateStatic<T> {}

impl<T> LateStatic<T> {
/// Construct a LateStatic.
Expand Down

0 comments on commit 185c5b0

Please sign in to comment.