Skip to content

Commit f87dd65

Browse files
committed
Remove Sized requirement for Send/Sync on VolatileRef
This requirement was unecessary, and VolatileRef<T> better mirrors &T without it.
1 parent 0d09121 commit f87dd65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/volatile_ref.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ where
234234
{
235235
}
236236

237-
unsafe impl<T, A> Send for VolatileRef<'_, T, A> where T: Sync {}
238-
unsafe impl<T, A> Sync for VolatileRef<'_, T, A> where T: Sync {}
237+
unsafe impl<T, A> Send for VolatileRef<'_, T, A> where T: Sync + ?Sized {}
238+
unsafe impl<T, A> Sync for VolatileRef<'_, T, A> where T: Sync + ?Sized {}
239239

240240
impl<T, A> fmt::Debug for VolatileRef<'_, T, A>
241241
where

0 commit comments

Comments
 (0)