diff options
Diffstat (limited to 'src/mutex/guard.rs')
| -rw-r--r-- | src/mutex/guard.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mutex/guard.rs b/src/mutex/guard.rs index f9324ad..8b2b1aa 100644 --- a/src/mutex/guard.rs +++ b/src/mutex/guard.rs @@ -65,11 +65,8 @@ impl<'a, T: ?Sized + 'a, R: RawMutex> AsMut<T> for MutexRef<'a, T, R> { impl<'a, T: ?Sized + 'a, R: RawMutex> MutexRef<'a, T, R> { /// Creates a reference to the underlying data of a mutex without - /// attempting to lock it or take ownership of the key. - - // This might be useful to export, because it makes it easier to express - // the concept of: "Get the data out the mutex but don't lock it or take - // the key". But it's also quite dangerous to drop. + /// attempting to lock it or take ownership of the key. But it's also quite + /// dangerous to drop. pub(crate) unsafe fn new(mutex: &'a Mutex<T, R>) -> Self { Self(mutex, PhantomData) } |
