prevent incomplete config files from exploding

This commit is contained in:
Abraham Toriz 2022-05-07 23:11:16 +08:00
parent 13800c1d09
commit 713193f682
No known key found for this signature in database
GPG Key ID: D5B4A746DB5DD42A
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ impl FromStr for WeekDay {
}
#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(default)]
pub struct Config {
#[serde(skip)]
pub path: Option<PathBuf>,