From 92ff1a5988cdea5851930e286fd8a0abfd744471 Mon Sep 17 00:00:00 2001 From: Mica White Date: Mon, 11 Mar 2024 22:09:33 -0400 Subject: Fix trait bounds --- src/rwlock.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/rwlock.rs') 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); 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 ()>, } -- cgit v1.2.3