From 366900c55059e121093a61ed6184e764a68d67f3 Mon Sep 17 00:00:00 2001 From: Alix Bott Date: Tue, 14 Jan 2025 08:44:39 +0100 Subject: [PATCH] implement Debug for RichText (#5596) * Derive Debug for RichText * [x] I have followed the instructions in the PR template --- crates/egui/src/widget_text.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/egui/src/widget_text.rs b/crates/egui/src/widget_text.rs index d5cd16f09fd..1132aa30468 100644 --- a/crates/egui/src/widget_text.rs +++ b/crates/egui/src/widget_text.rs @@ -22,7 +22,7 @@ use crate::{ /// RichText::new("colored").color(Color32::RED); /// RichText::new("Large and underlined").size(20.0).underline(); /// ``` -#[derive(Clone, Default, PartialEq)] +#[derive(Debug, Clone, Default, PartialEq)] pub struct RichText { text: String, size: Option,