mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-10-01 22:30:49 +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.
|
/// Dropping it unlocks the mutex.
|
||||||
#[clippy::has_significant_drop]
|
#[clippy::has_significant_drop]
|
||||||
|
#[must_use = "if unused the Mutex will immediately unlock"]
|
||||||
pub struct MutexGuard<'a, M, T>
|
pub struct MutexGuard<'a, M, T>
|
||||||
where
|
where
|
||||||
M: RawMutex,
|
M: RawMutex,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user