Use defaultconfig instead of default on structs

This commit is contained in:
Philip Kristoffersen
2021-09-25 12:19:07 +02:00
parent 993251156d
commit f68db38a7f
6 changed files with 30 additions and 69 deletions
+1 -10
View File
@@ -4,13 +4,4 @@ use serde::Deserialize;
pub struct LegendarySettings {
pub enabled: bool,
pub executable: Option<String>,
}
impl Default for LegendarySettings {
fn default() -> Self {
Self {
enabled: true,
executable: None,
}
}
}
}