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/mutex.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mutex.rs') 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); 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 ()>, } -- cgit v1.2.3