From dc0db358abe19481e475e10c32149b53370f1a1c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 30 May 2024 05:57:31 +0200 Subject: Merging upstream version 1.72.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/lock_api/src/remutex.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vendor/lock_api/src/remutex.rs') diff --git a/vendor/lock_api/src/remutex.rs b/vendor/lock_api/src/remutex.rs index 3e2010f2b..a2f818523 100644 --- a/vendor/lock_api/src/remutex.rs +++ b/vendor/lock_api/src/remutex.rs @@ -599,6 +599,7 @@ where /// /// The data protected by the mutex can be accessed through this guard via its /// `Deref` implementation. +#[clippy::has_significant_drop] #[must_use = "if unused the ReentrantMutex will immediately unlock"] pub struct ReentrantMutexGuard<'a, R: RawMutex, G: GetThreadId, T: ?Sized> { remutex: &'a ReentrantMutex, @@ -794,6 +795,7 @@ unsafe impl<'a, R: RawMutex + 'a, G: GetThreadId + 'a, T: ?Sized + 'a> StableAdd /// `Mutex` it uses an `Arc`. This has several advantages, most notably that it has an `'static` /// lifetime. #[cfg(feature = "arc_lock")] +#[clippy::has_significant_drop] #[must_use = "if unused the ReentrantMutex will immediately unlock"] pub struct ArcReentrantMutexGuard { remutex: Arc>, @@ -897,6 +899,7 @@ impl Drop for ArcReentrantMutexGuard { raw: &'a RawReentrantMutex, -- cgit v1.2.3