fixed_window: fix clippy warning

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-06-24 17:12:24 -07:00
parent 1228f83e50
commit 8ef6534981

View File

@@ -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 {