diff options
Diffstat (limited to 'src/mutex/spin.rs')
-rw-r--r-- | src/mutex/spin.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mutex/spin.rs b/src/mutex/spin.rs index 1ee572d..561d765 100644 --- a/src/mutex/spin.rs +++ b/src/mutex/spin.rs @@ -87,6 +87,9 @@ pub struct SpinMutexGuard<'a, T: ?Sized + 'a> { unsafe impl<T: ?Sized + Send, R> Sync for SpinMutex<T, R> {} unsafe impl<T: ?Sized + Send, R> Send for SpinMutex<T, R> {} +unsafe impl<T: ?Sized + Sync> Sync for SpinMutexGuard<'_, T> {} +unsafe impl<T: ?Sized + Send> Send for SpinMutexGuard<'_, T> {} + impl<T, R> SpinMutex<T, R> { /// Creates a new [`SpinMutex`] wrapping the supplied data. /// |