From 8ef6534981a11faff8448c348e9a3873e0f754a5 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 24 Jun 2024 17:12:24 -0700 Subject: [PATCH] fixed_window: fix clippy warning Signed-off-by: William Casarin --- src/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 index e4160747..ed82c10f 100644 --- 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, } @@ -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) -> Self {