fix: clippy inline format args

This commit is contained in:
2025-08-11 12:34:50 -05:00
parent bd61db9aae
commit 5b883098ea

View File

@@ -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