mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-27 04:10:25 +00:00
Add must_use to MutexGuard
This commit is contained in:
parent
d3059bbcf7
commit
0f04878301
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user