Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - bevy_ptr standalone crate #4653

Prev Previous commit
Next Next commit
make UnsafeCellDeref pub
  • Loading branch information
jakobhellermann committed May 4, 2022
commit 5edf6270ed006e5fc5f7af306027c51047d6a06e
2 changes: 1 addition & 1 deletion crates/bevy_ptr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ impl<'a, T> From<&'a [T]> for ThinSlicePtr<'a, T> {
}
}

pub(crate) trait UnsafeCellDeref<'a, T> {
pub trait UnsafeCellDeref<'a, T> {
unsafe fn deref_mut(self) -> &'a mut T;
unsafe fn deref(self) -> &'a T;
unsafe fn read(self) -> T
Expand Down