Document safety of unsafe Sync impl

This commit is contained in:
2021-05-13 17:08:57 +02:00
parent dc299f2f9a
commit 75df988d8a

View File

@@ -190,6 +190,7 @@ impl fmt::Debug for LazyMutexId {
}
}
/// Safety: the UnsafeCell is guaranteed to only be accessed mutably from a `Once`.
unsafe impl Sync for LazyMutexId {}
impl Deref for LazyMutexId {