diff --git a/src/lock.rs b/src/lock.rs index 820052a2..d27b4131 100644 --- a/src/lock.rs +++ b/src/lock.rs @@ -168,6 +168,8 @@ impl RwLock { } } + /// # Safety + /// Write locks may not be used in combination with this method. pub unsafe fn get(&self) -> &T { &*self.data.get() }