Skip to content

Commit 9227946

Browse files
Relax deferred UnsafeWorldCell visibility (#21360)
# Objective Addresses the immediate blocker in #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.
1 parent 27b9527 commit 9227946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_ecs/src/world/deferred_world.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ impl<'w> DeferredWorld<'w> {
831831
/// # Safety
832832
/// - must only be used to make non-structural ECS changes
833833
#[inline]
834-
pub(crate) fn as_unsafe_world_cell(&mut self) -> UnsafeWorldCell<'_> {
834+
pub fn as_unsafe_world_cell(&mut self) -> UnsafeWorldCell<'_> {
835835
self.world
836836
}
837837
}

0 commit comments

Comments
 (0)