summaryrefslogtreecommitdiff
path: root/src/mutex.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/mutex.rs
parent84ebd3cf9be21bba8eb6c4d214c868e66965b69a (diff)
Fix trait bounds
Diffstat (limited to 'src/mutex.rs')
-rw-r--r--src/mutex.rs3
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 ()>,
}