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 exit: bool,
@ -143,12 +144,6 @@ pub struct Actions {
impl Actions {
pub fn new() -> Self {
Self {
exit: false,
toggle_model: false,
toggle_mesh: false,
toggle_debug: false,
}
Self::default()
}
}