Skip to content

Commit

Permalink
pwettify comfig file :3
Browse files Browse the repository at this point in the history
  • Loading branch information
mxve committed Sep 18, 2023
1 parent ce18aea commit d50f3b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn load(config_path: PathBuf) -> Config {
}

pub fn save(config_path: PathBuf, config: Config) {
fs::write(config_path, serde_json::to_string(&config).unwrap()).unwrap();
fs::write(config_path, serde_json::to_string_pretty(&config).unwrap()).unwrap();
}

pub fn save_value(config_path: PathBuf, key: &str, value: bool) {
Expand Down

0 comments on commit d50f3b8

Please sign in to comment.