diff options
Diffstat (limited to 'src/libsync/sync')
| -rw-r--r-- | src/libsync/sync/mutex.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsync/sync/mutex.rs b/src/libsync/sync/mutex.rs index b37e2f3a45d..2bd85526e68 100644 --- a/src/libsync/sync/mutex.rs +++ b/src/libsync/sync/mutex.rs @@ -143,6 +143,7 @@ pub struct StaticMutex { /// An RAII implementation of a "scoped lock" of a mutex. When this structure is /// dropped (falls out of scope), the lock will be unlocked. +#[must_use] pub struct Guard<'a> { priv lock: &'a mut StaticMutex, } |
