summaryrefslogtreecommitdiff
path: root/src/rwlock.rs
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2024-03-11 22:09:33 -0400
committerMica White <botahamec@outlook.com>2024-03-11 22:09:33 -0400
commit92ff1a5988cdea5851930e286fd8a0abfd744471 (patch)
treee5ff0478051108ec6db6941b2af4ac340a578ce5 /src/rwlock.rs
parent84ebd3cf9be21bba8eb6c4d214c868e66965b69a (diff)
Fix trait bounds
Diffstat (limited to 'src/rwlock.rs')
-rw-r--r--src/rwlock.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rwlock.rs b/src/rwlock.rs
index fb40a71..f11b204 100644
--- a/src/rwlock.rs
+++ b/src/rwlock.rs
@@ -83,7 +83,8 @@ pub struct RwLockWriteRef<'a, T: ?Sized, R: RawRwLock>(&'a RwLock<T, R>);
pub struct RwLockReadGuard<'a, 'key, T: ?Sized, Key: Keyable + 'key, R: RawRwLock> {
rwlock: RwLockReadRef<'a, T, R>,
thread_key: Key,
- _phantom: PhantomData<&'key ()>,
+ _phantom1: PhantomData<&'key ()>,
+ _phantom2: PhantomData<*const ()>,
}
/// RAII structure used to release the exclusive write access of a lock when
@@ -96,5 +97,6 @@ pub struct RwLockReadGuard<'a, 'key, T: ?Sized, Key: Keyable + 'key, R: RawRwLoc
pub struct RwLockWriteGuard<'a, 'key, T: ?Sized, Key: Keyable + 'key, R: RawRwLock> {
rwlock: RwLockWriteRef<'a, T, R>,
thread_key: Key,
- _phantom: PhantomData<&'key ()>,
+ _phantom1: PhantomData<&'key ()>,
+ _phantom2: PhantomData<*const ()>,
}