fixed_window: fix clippy warning
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
use egui::{Rect, Response, RichText, Sense, Window};
|
use egui::{Rect, Response, RichText, Sense, Window};
|
||||||
|
|
||||||
|
#[derive(Default)]
|
||||||
pub struct FixedWindow {
|
pub struct FixedWindow {
|
||||||
title: Option<RichText>,
|
title: Option<RichText>,
|
||||||
}
|
}
|
||||||
@@ -13,7 +14,7 @@ pub enum FixedWindowResponse {
|
|||||||
impl FixedWindow {
|
impl FixedWindow {
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
Self { title: None }
|
FixedWindow::default()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn maybe_with_title(maybe_title: Option<RichText>) -> Self {
|
pub fn maybe_with_title(maybe_title: Option<RichText>) -> Self {
|
||||||
|
|||||||
Reference in New Issue
Block a user