mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-10 14:07:59 -06:00
fix: clippy inline format args
This commit is contained in:
@@ -87,7 +87,7 @@ impl MapRenderer {
|
|||||||
|
|
||||||
// Draw node ID text (small, offset to top right)
|
// Draw node ID text (small, offset to top right)
|
||||||
text_renderer.set_scale(0.5); // Small text
|
text_renderer.set_scale(0.5); // Small text
|
||||||
let id_text = format!("#{}", nearest_id);
|
let id_text = format!("#{nearest_id}");
|
||||||
let text_pos = glam::UVec2::new(
|
let text_pos = glam::UVec2::new(
|
||||||
(nearest_pos.x + 4.0) as u32, // Offset to the right
|
(nearest_pos.x + 4.0) as u32, // Offset to the right
|
||||||
(nearest_pos.y - 6.0) as u32, // Offset to the top
|
(nearest_pos.y - 6.0) as u32, // Offset to the top
|
||||||
|
|||||||
Reference in New Issue
Block a user