Skip to content

Commit 32a012c

Browse files
authored
Merge pull request #42 from nspin/pr/remove-sized-requirement-for-send-sync-volatile-ref
Remove `Sized` requirement for `Send` and `Sync` on `VolatileRef`
2 parents 595ccf3 + baca80b commit 32a012c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- Add implementations for `fmt::Pointer`, `PartialEq`, `Eq`, `PartialOrd`, `Ord` and `Hash`.
44
- Update `very_unstable` feature to latest nightly
5+
- Remove `Sized` requirement for `Send` and `Sync` impls on `VolatileRef`
56

67
# 0.5.1 – 2023-06-24
78

src/volatile_ref.rs

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

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

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

0 commit comments

Comments
 (0)