Merge pull request #3848 from wackazong/patch-5

Add must_use to MutexGuard
This commit is contained in:
James Munns 2025-02-04 16:18:08 +00:00 committed by GitHub
commit a2014c961d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -171,6 +171,7 @@ where
///
/// Dropping it unlocks the mutex.
#[clippy::has_significant_drop]
#[must_use = "if unused the Mutex will immediately unlock"]
pub struct MutexGuard<'a, M, T>
where
M: RawMutex,