summaryrefslogtreecommitdiff
path: root/src/rwlock.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rwlock.rs')
-rw-r--r--src/rwlock.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rwlock.rs b/src/rwlock.rs
index df68fc5..7fb8c7a 100644
--- a/src/rwlock.rs
+++ b/src/rwlock.rs
@@ -89,7 +89,7 @@ pub struct RwLockWriteRef<'a, T: ?Sized, R: RawRwLock>(
pub struct RwLockReadGuard<'a, 'key, T: ?Sized, Key: Keyable + 'key, R: RawRwLock> {
rwlock: RwLockReadRef<'a, T, R>,
thread_key: Key,
- _phantom1: PhantomData<&'key ()>,
+ _phantom: PhantomData<&'key ()>,
}
/// RAII structure used to release the exclusive write access of a lock when
@@ -102,5 +102,5 @@ 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,
- _phantom1: PhantomData<&'key ()>,
+ _phantom: PhantomData<&'key ()>,
}