Skip to content

Commit

Permalink
Merge pull request #3848 from wackazong/patch-5
Browse files Browse the repository at this point in the history
Add must_use to MutexGuard
  • Loading branch information
jamesmunns authored Feb 4, 2025
2 parents d3059bb + 0f04878 commit a2014c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions embassy-sync/src/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a2014c9

Please sign in to comment.