notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 8ef6534981a11faff8448c348e9a3873e0f754a5
parent 1228f83e5006794825a03e1142013943eccf3998
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 24 Jun 2024 17:12:24 -0700

fixed_window: fix clippy warning

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Msrc/ui/fixed_window.rs | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/ui/fixed_window.rs b/src/ui/fixed_window.rs @@ -1,5 +1,6 @@ use egui::{Rect, Response, RichText, Sense, Window}; +#[derive(Default)] pub struct FixedWindow { title: Option<RichText>, } @@ -13,7 +14,7 @@ pub enum FixedWindowResponse { impl FixedWindow { #[allow(dead_code)] pub fn new() -> Self { - Self { title: None } + FixedWindow::default() } pub fn maybe_with_title(maybe_title: Option<RichText>) -> Self {