diff options
| author | Mica White <botahamec@gmail.com> | 2024-12-26 10:54:51 -0500 |
|---|---|---|
| committer | Mica White <botahamec@gmail.com> | 2024-12-26 11:06:23 -0500 |
| commit | a060123077b94f61e3d0802a6977ad547276fd1b (patch) | |
| tree | 321cfbca5d8a661085f8455f6115c5fe7499e9af /src/rwlock.rs | |
| parent | 129c13c21254ca104bddf020170edaca1fb7107d (diff) | |
Remove unnecessary generics
Diffstat (limited to 'src/rwlock.rs')
| -rw-r--r-- | src/rwlock.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rwlock.rs b/src/rwlock.rs index 1425b54..ea7d3f0 100644 --- a/src/rwlock.rs +++ b/src/rwlock.rs @@ -95,7 +95,7 @@ pub struct RwLockWriteRef<'a, T: ?Sized, R: RawRwLock>( /// /// [`read`]: `RwLock::read` /// [`try_read`]: `RwLock::try_read` -pub struct RwLockReadGuard<'a, 'key, T: ?Sized, Key: Keyable + 'key, R: RawRwLock> { +pub struct RwLockReadGuard<'a, 'key: 'a, T: ?Sized, Key: Keyable + 'key, R: RawRwLock> { rwlock: RwLockReadRef<'a, T, R>, thread_key: Key, _phantom: PhantomData<&'key ()>, @@ -108,7 +108,7 @@ pub struct RwLockReadGuard<'a, 'key, T: ?Sized, Key: Keyable + 'key, R: RawRwLoc /// [`RwLock`] /// /// [`try_write`]: `RwLock::try_write` -pub struct RwLockWriteGuard<'a, 'key, T: ?Sized, Key: Keyable + 'key, R: RawRwLock> { +pub struct RwLockWriteGuard<'a, 'key: 'a, T: ?Sized, Key: Keyable + 'key, R: RawRwLock> { rwlock: RwLockWriteRef<'a, T, R>, thread_key: Key, _phantom: PhantomData<&'key ()>, |
