diff --git a/src/main.rs b/src/main.rs index 7215d15..345200f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,10 +43,8 @@ fn move_player( direction.x -= 1.0; } if direction != Vec3::ZERO { - if let Ok(mut player_transform) = q_player.get_single_mut() { - player_transform.translation += - direction.normalize() * PLAYER_SPEED * time.delta_seconds(); - } + let mut player_transform = q_player.get_single_mut().unwrap(); + player_transform.translation += direction.normalize() * PLAYER_SPEED * time.delta_seconds(); } }