Skip to content

Commit

Permalink
Merge pull request #369 from c410-f3r/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Feb 3, 2023
2 parents f549eac + b52ce42 commit 56b91e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lock_api/src/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ where
///
/// The data protected by the mutex can be accessed through this guard via its
/// `Deref` and `DerefMut` implementations.
#[clippy::has_significant_drop]
#[must_use = "if unused the Mutex will immediately unlock"]
pub struct MutexGuard<'a, R: RawMutex, T: ?Sized> {
mutex: &'a Mutex<R, T>,
Expand Down

0 comments on commit 56b91e9

Please sign in to comment.