From 48f6a96a0197abc28f726699448c7b5f52ca58af Mon Sep 17 00:00:00 2001 From: mxve <68632137+mxve@users.noreply.github.com> Date: Mon, 18 Sep 2023 16:29:37 +0200 Subject: [PATCH] pwettify comfig file :3 --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 7664c2e..e848576 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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) {