diff --git a/Changelog.md b/Changelog.md index a27b03a..6ba9fe6 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,6 +2,7 @@ - Add implementations for `fmt::Pointer`, `PartialEq`, `Eq`, `PartialOrd`, `Ord` and `Hash`. - Update `very_unstable` feature to latest nightly +- Remove `Sized` requirement for `Send` and `Sync` impls on `VolatileRef` # 0.5.1 – 2023-06-24 diff --git a/src/volatile_ref.rs b/src/volatile_ref.rs index 3a606bf..d052c7d 100644 --- a/src/volatile_ref.rs +++ b/src/volatile_ref.rs @@ -233,8 +233,8 @@ where { } -unsafe impl Send for VolatileRef<'_, T, A> where T: Sync {} -unsafe impl Sync for VolatileRef<'_, T, A> where T: Sync {} +unsafe impl Send for VolatileRef<'_, T, A> where T: Sync + ?Sized {} +unsafe impl Sync for VolatileRef<'_, T, A> where T: Sync + ?Sized {} impl fmt::Debug for VolatileRef<'_, T, A> where