Skip to content

Commit 366900c

Browse files
authored
implement Debug for RichText (#5596)
<!-- Please read the "Making a PR" section of [`CONTRIBUTING.md`](https://github.com/emilk/egui/blob/master/CONTRIBUTING.md) before opening a Pull Request! * Keep your PR:s small and focused. * The PR title is what ends up in the changelog, so make it descriptive! * If applicable, add a screenshot or gif. * If it is a non-trivial addition, consider adding a demo for it to `egui_demo_lib`, or a new example. * Do NOT open PR:s from your `master` branch, as that makes it hard for maintainers to test and add commits to your PR. * Remember to run `cargo fmt` and `cargo clippy`. * Open the PR as a draft until you have self-reviewed it and run `./scripts/check.sh`. * When you have addressed a PR comment, mark it as resolved. Please be patient! I will review your PR, but my time is limited! --> * Derive Debug for RichText * [x] I have followed the instructions in the PR template
1 parent 164f56f commit 366900c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/egui/src/widget_text.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use crate::{
2222
/// RichText::new("colored").color(Color32::RED);
2323
/// RichText::new("Large and underlined").size(20.0).underline();
2424
/// ```
25-
#[derive(Clone, Default, PartialEq)]
25+
#[derive(Debug, Clone, Default, PartialEq)]
2626
pub struct RichText {
2727
text: String,
2828
size: Option<f32>,

0 commit comments

Comments
 (0)