We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 947474f commit 1d5fa18Copy full SHA for 1d5fa18
crates/bevy_ecs/src/world/unsafe_world_cell.rs
@@ -85,9 +85,7 @@ impl<'w> UnsafeWorldCell<'w> {
85
}
86
87
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) }
+ Self(world as *mut World, PhantomData)
91
92
93
/// This `&mut World` counts as a mutable borrow of every resource and component for the purposes
0 commit comments