fix: avoid implicit autoref by explicitly mutably referencing raw pointer target

This commit is contained in:
2025-10-03 14:05:19 +02:00
parent a79b04114a
commit 0cc59fdc15

View File

@@ -481,7 +481,8 @@ fn main() {
let mut pin = root.as_mut();
let node = unsafe { pin.get_unchecked_mut() };
unsafe {
(*node.children[1]).position.z = door_slide;
let door_node = &mut *node.children[1];
door_node.position.z = door_slide;
}
}
}