Clipp suggested this

This commit is contained in:
2023-07-05 22:26:01 +01:00
parent 9f62e4894b
commit 88e6033b99
2 changed files with 9 additions and 6 deletions

View File

@@ -20,8 +20,8 @@ pub enum CommandErrors {
NoIwad,
}
impl CommandManager {
pub fn new() -> Self {
impl Default for CommandManager {
fn default() -> Self {
Self {
launcher: None,
iwad: None,
@@ -33,6 +33,9 @@ impl CommandManager {
command_string: "".to_string(),
}
}
}
impl CommandManager {
pub fn remove_iwad(&mut self) {
self.iwad = None;
self.update_command();