prevent incomplete config files from exploding
This commit is contained in:
parent
13800c1d09
commit
713193f682
|
@ -39,6 +39,7 @@ impl FromStr for WeekDay {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||||
|
#[serde(default)]
|
||||||
pub struct Config {
|
pub struct Config {
|
||||||
#[serde(skip)]
|
#[serde(skip)]
|
||||||
pub path: Option<PathBuf>,
|
pub path: Option<PathBuf>,
|
||||||
|
|
Loading…
Reference in New Issue