diff options
Diffstat (limited to 'src/mutex.rs')
| -rw-r--r-- | src/mutex.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mutex.rs b/src/mutex.rs index b36854b..431eedc 100644 --- a/src/mutex.rs +++ b/src/mutex.rs @@ -49,5 +49,6 @@ pub struct MutexRef<'a, T: ?Sized + 'a, R: RawMutex>(&'a Mutex<T, R>); pub struct MutexGuard<'a, 'key: 'a, T: ?Sized + 'a, Key: Keyable + 'key, R: RawMutex> { mutex: MutexRef<'a, T, R>, thread_key: Key, - _phantom: PhantomData<&'key ()>, + _phantom1: PhantomData<*const ()>, // implement !Send + _phantom2: PhantomData<&'key ()>, } |
