Skip to content

Commit

Permalink
Merge pull request #42 from nspin/pr/remove-sized-requirement-for-sen…
Browse files Browse the repository at this point in the history
…d-sync-volatile-ref

Remove `Sized` requirement for `Send` and `Sync` on `VolatileRef`
  • Loading branch information
phil-opp committed Mar 22, 2024
2 parents 595ccf3 + baca80b commit 32a012c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/volatile_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ where
{
}

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

impl<T, A> fmt::Debug for VolatileRef<'_, T, A>
where
Expand Down

0 comments on commit 32a012c

Please sign in to comment.