diff options
| author | Botahamec <botahamec@outlook.com> | 2024-05-22 21:02:37 -0400 |
|---|---|---|
| committer | Botahamec <botahamec@outlook.com> | 2024-05-22 21:02:37 -0400 |
| commit | fa39064fe2f3399d27762a23c54d4703d00bd199 (patch) | |
| tree | a6da67d0f7808fdecf56568e1741ec3189c9a24f /src/rwlock/write_guard.rs | |
| parent | 878f4fae4d3c6e64ab3824bf3fc012fbb5293a21 (diff) | |
must use
Diffstat (limited to 'src/rwlock/write_guard.rs')
| -rw-r--r-- | src/rwlock/write_guard.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rwlock/write_guard.rs b/src/rwlock/write_guard.rs index ec622d7..5b41c99 100644 --- a/src/rwlock/write_guard.rs +++ b/src/rwlock/write_guard.rs @@ -50,6 +50,7 @@ impl<'a, T: ?Sized + 'a, R: RawRwLock> Drop for RwLockWriteRef<'a, T, R> { impl<'a, T: ?Sized + 'a, R: RawRwLock> RwLockWriteRef<'a, T, R> { /// Creates a reference to the underlying data of an [`RwLock`] without /// locking or taking ownership of the key. + #[must_use] pub(crate) unsafe fn new(mutex: &'a RwLock<T, R>) -> Self { Self(mutex, PhantomData) } |
