Skip to content

Commit

Permalink
Fix soundness issue in with UnsafeRef<T>
Browse files Browse the repository at this point in the history
Fixes Amanieu#92. This applies a suggestion from @cramertj in an internal
unsafe review.
  • Loading branch information
cblichmann committed Aug 21, 2024
1 parent 48ee32f commit 5c1cf18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unsafe_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,6 @@ impl<T: fmt::Debug + ?Sized> fmt::Debug for UnsafeRef<T> {
}
}

unsafe impl<T: ?Sized + Send> Send for UnsafeRef<T> {}
unsafe impl<T: ?Sized + Send + Sync> Send for UnsafeRef<T> {}

unsafe impl<T: ?Sized + Sync> Sync for UnsafeRef<T> {}

0 comments on commit 5c1cf18

Please sign in to comment.