diff --git a/lock_api/src/mutex.rs b/lock_api/src/mutex.rs index c97e5430..a302c87a 100644 --- a/lock_api/src/mutex.rs +++ b/lock_api/src/mutex.rs @@ -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,