Use default value if key is missing
This commit is contained in:
parent
1a016546d8
commit
46092dfe3a
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ use std::path::PathBuf;
|
|||
use xdg::BaseDirectories;
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
#[serde(default)]
|
||||
pub struct Config {
|
||||
pub resume_file: PathBuf,
|
||||
pub idle_level: i32,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue