Derive Default for Actions

I'm about to move it to a separate crate, which triggers the respective
Clippy warning.
This commit is contained in:
Hanno Braun 2022-04-13 14:35:02 +02:00
parent e5e58704dd
commit 12860e94e2

View File

@ -133,6 +133,7 @@ impl Handler {
} }
} }
#[derive(Default)]
pub struct Actions { pub struct Actions {
pub exit: bool, pub exit: bool,
@ -143,12 +144,6 @@ pub struct Actions {
impl Actions { impl Actions {
pub fn new() -> Self { pub fn new() -> Self {
Self { Self::default()
exit: false,
toggle_model: false,
toggle_mesh: false,
toggle_debug: false,
}
} }
} }