From ec01ff6a98a6c680e31d84367d5d5547505376db Mon Sep 17 00:00:00 2001 From: Ygor Souza Date: Mon, 9 Oct 2023 05:54:41 +0200 Subject: [PATCH] Add redo count to Undoer debug fmt --- crates/egui/src/util/undoer.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/egui/src/util/undoer.rs b/crates/egui/src/util/undoer.rs index 0b64a1c4a35..7520ed77e38 100644 --- a/crates/egui/src/util/undoer.rs +++ b/crates/egui/src/util/undoer.rs @@ -67,9 +67,10 @@ pub struct Undoer { impl std::fmt::Debug for Undoer { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let Self { undos, .. } = self; + let Self { undos, redos, .. } = self; f.debug_struct("Undoer") .field("undo count", &undos.len()) + .field("redo count", &redos.len()) .finish() } }