fix: resolve clippy warnings, inline format vars, use tracing to log warnings

This commit is contained in:
2025-08-11 22:09:08 -05:00
parent 27079e127d
commit 1f8e7c6d71
4 changed files with 16 additions and 13 deletions

View File

@@ -7,6 +7,7 @@
use pathfinding::prelude::dijkstra;
use rand::prelude::*;
use smallvec::SmallVec;
use tracing::error;
use crate::entity::direction::Direction;
use crate::entity::graph::{Edge, EdgePermissions, Graph, NodeId};
@@ -104,7 +105,7 @@ impl Entity for Ghost {
}
if let Err(e) = self.traverser.advance(graph, dt * 60.0 * self.speed, &can_ghost_traverse) {
eprintln!("Ghost movement error: {}", e);
error!("Ghost movement error: {}", e);
}
self.texture.tick(dt);
}