diff --git a/futures-util/src/lock/mutex.rs b/futures-util/src/lock/mutex.rs index 1a6363ea7..ccd2b7919 100644 --- a/futures-util/src/lock/mutex.rs +++ b/futures-util/src/lock/mutex.rs @@ -279,6 +279,7 @@ impl Drop for OwnedMutexLockFuture { /// An RAII guard returned by the `lock_owned` and `try_lock_owned` methods. /// When this structure is dropped (falls out of scope), the lock will be /// unlocked. +#[clippy::has_significant_drop] pub struct OwnedMutexGuard { mutex: Arc>, } @@ -388,6 +389,7 @@ impl Drop for MutexLockFuture<'_, T> { /// An RAII guard returned by the `lock` and `try_lock` methods. /// When this structure is dropped (falls out of scope), the lock will be /// unlocked. +#[clippy::has_significant_drop] pub struct MutexGuard<'a, T: ?Sized> { mutex: &'a Mutex, } @@ -449,6 +451,7 @@ impl DerefMut for MutexGuard<'_, T> { /// An RAII guard returned by the `MutexGuard::map` and `MappedMutexGuard::map` methods. /// When this structure is dropped (falls out of scope), the lock will be unlocked. +#[clippy::has_significant_drop] pub struct MappedMutexGuard<'a, T: ?Sized, U: ?Sized> { mutex: &'a Mutex, value: *mut U,