chore: remove unnecessary log, simplify match to if let

This commit is contained in:
2025-08-15 13:05:52 -05:00
parent 7f95c0233e
commit 02a98c9f32

View File

@@ -30,8 +30,8 @@ pub fn player_system(
// Handle events
for event in events.read() {
match event {
GameEvent::Command(command) => match command {
if let GameEvent::Command(command) = event {
match command {
GameCommand::MovePlayer(direction) => {
movable.requested_direction = Some(*direction);
}
@@ -39,9 +39,6 @@ pub fn player_system(
state.exit = true;
}
_ => {}
},
GameEvent::Collision(a, b) => {
tracing::info!("Collision between {:?} and {:?}", a, b);
}
}
}