-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Relax deferred UnsafeWorldCell visibility #21360
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a good idea to me! Note that you could already call as_unsafe_world_cell_readonly() through Deref<Target = World>, so it was a little inconsistent that you couldn't do the &mut version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is neat, I'll be able to avoid this re-borrow in bevy_replicon.
# Objective Addresses the immediate blocker in bevyengine#21354 by relaxing the `(crate)` visibility restriction on `DeferredWorld::as_unsafe_world_cell`. This method already has documentation, including a safety comment. While sparse, I think they communicate the function clearly.
# Objective Addresses the immediate blocker in bevyengine#21354 by relaxing the `(crate)` visibility restriction on `DeferredWorld::as_unsafe_world_cell`. This method already has documentation, including a safety comment. While sparse, I think they communicate the function clearly.
|
Awesome, I was just about to open a PR for this, I needed this :) |
# Objective Addresses the immediate blocker in bevyengine#21354 by relaxing the `(crate)` visibility restriction on `DeferredWorld::as_unsafe_world_cell`. This method already has documentation, including a safety comment. While sparse, I think they communicate the function clearly.
Objective
Addresses the immediate blocker in #21354 by relaxing the
(crate)visibility restriction onDeferredWorld::as_unsafe_world_cell.This method already has documentation, including a safety comment. While sparse, I think they communicate the function clearly.