From 5d5a131839220df7d31403b9f63ea82c4dc04cff Mon Sep 17 00:00:00 2001 From: Alice Cecile Date: Sat, 27 Jan 2024 23:10:37 -0500 Subject: [PATCH] Derive `Debug` for `Framecount` I wanted this for an example, and I think it's a fundamentally handy debugging tool (with already public fields). --- crates/bevy_core/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_core/src/lib.rs b/crates/bevy_core/src/lib.rs index c925bc99362da..5c669186d7934 100644 --- a/crates/bevy_core/src/lib.rs +++ b/crates/bevy_core/src/lib.rs @@ -140,7 +140,7 @@ fn tick_global_task_pools(_main_thread_marker: Option>) { /// [`FrameCount`] will wrap to 0 after exceeding [`u32::MAX`]. Within reasonable /// assumptions, one may exploit wrapping arithmetic to determine the number of frames /// that have elapsed between two observations – see [`u32::wrapping_sub()`]. -#[derive(Default, Resource, Clone, Copy)] +#[derive(Debug, Default, Resource, Clone, Copy)] pub struct FrameCount(pub u32); /// Adds frame counting functionality to Apps.