pwettify comfig file :3

This commit is contained in:
mxve 2023-09-18 16:29:37 +02:00
parent f4fe1c6699
commit 48f6a96a01

View File

@ -13,7 +13,7 @@ pub fn load(config_path: PathBuf) -> Config {
} }
pub fn save(config_path: PathBuf, config: 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) { pub fn save_value(config_path: PathBuf, key: &str, value: bool) {