Allow mut_from_ref

This commit is contained in:
Robert Dodd 2024-01-03 08:47:21 +11:00
parent 5272be399b
commit 4e5f6e4fd1

View file

@ -28,6 +28,7 @@ pub(crate) struct EcsContext {
}
impl EcsContext {
#[allow(clippy::mut_from_ref)]
pub fn get_world(cx: &ScopeState) -> &mut World {
unsafe {
&mut *cx