diff --git a/engine/src/debug.rs b/engine/src/debug.rs index 793428b..510ab8e 100644 --- a/engine/src/debug.rs +++ b/engine/src/debug.rs @@ -236,7 +236,7 @@ fn toggle_debug_state( #[derive(Default, Resource)] pub struct Notice(pub String); -impl Display for Notice { +impl fmt::Display for Notice { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { writeln!(f, "{}", self.0) } @@ -256,7 +256,7 @@ impl ToolTip { } } -impl Display for ToolTip { +impl fmt::Display for ToolTip { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { for (k, v) in self.0.iter() { writeln!(f, "{k}: {v}")? @@ -474,7 +474,7 @@ fn toggle_aabb_gizmo( #[derive(Resource, Default, Debug)] struct Fps(f32); -impl Display for Fps { +impl fmt::Display for Fps { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { writeln!(f, "FPS: {:0.1}", self.0) } @@ -499,7 +499,7 @@ fn track_fps(time: Res