From 85dd2106bdc3476c0eb73c97f2f4b338a3486749 Mon Sep 17 00:00:00 2001 From: Botahamec Date: Fri, 20 Dec 2024 18:28:08 -0500 Subject: Fix clippy issues --- src/rwlock/rwlock.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/rwlock/rwlock.rs') diff --git a/src/rwlock/rwlock.rs b/src/rwlock/rwlock.rs index fddcf5a..063ab68 100644 --- a/src/rwlock/rwlock.rs +++ b/src/rwlock/rwlock.rs @@ -62,7 +62,7 @@ impl Debug for RwLock { } } -impl Default for RwLock { +impl Default for RwLock { fn default() -> Self { Self::new(T::default()) } @@ -140,7 +140,7 @@ impl RwLock { pub fn read<'s, 'key: 's, Key: Keyable>( &'s self, key: Key, - ) -> RwLockReadGuard<'_, 'key, T, Key, R> { + ) -> RwLockReadGuard<'s, 'key, T, Key, R> { unsafe { self.raw.lock_shared(); @@ -172,7 +172,7 @@ impl RwLock { pub fn try_read<'s, 'key: 's, Key: Keyable>( &'s self, key: Key, - ) -> Option> { + ) -> Option> { unsafe { if self.raw.try_lock_shared() { // safety: the lock is locked first @@ -233,7 +233,7 @@ impl RwLock { pub fn write<'s, 'key: 's, Key: Keyable>( &'s self, key: Key, - ) -> RwLockWriteGuard<'_, 'key, T, Key, R> { + ) -> RwLockWriteGuard<'s, 'key, T, Key, R> { unsafe { self.raw.lock_exclusive(); @@ -266,7 +266,7 @@ impl RwLock { pub fn try_write<'s, 'key: 's, Key: Keyable>( &'s self, key: Key, - ) -> Option> { + ) -> Option> { unsafe { if self.raw.try_lock_exclusive() { // safety: the lock is locked first -- cgit v1.2.3