Skip to content

Commit 1d5fa18

Browse files
committed
a
1 parent 947474f commit 1d5fa18

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/bevy_ecs/src/world/unsafe_world_cell.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ impl<'w> UnsafeWorldCell<'w> {
8585
}
8686

8787
pub(crate) fn new_mutable(world: &'w mut World) -> Self {
88-
// SAFETY: raw pointer is derived from an `&mut World` and `Unsafecell<World>` has
89-
// the same layout as `World`.
90-
unsafe { Self(world as *mut World, PhantomData) }
88+
Self(world as *mut World, PhantomData)
9189
}
9290

9391
/// This `&mut World` counts as a mutable borrow of every resource and component for the purposes

0 commit comments

Comments
 (0)