fix: avoid implicit autoref by explicitly mutably referencing raw pointer target
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user