Make config json pretty

This commit is contained in:
Ilya Zlobintsev
2021-03-01 13:54:50 +02:00
parent ce3f26865a
commit 6b02b4a31c

View File

@@ -97,7 +97,7 @@ impl Config {
}
pub fn save(&self) -> Result<(), ConfigError> {
let json = serde_json::json!(self);
let json = serde_json::to_string_pretty(self)?;
log::info!("saving {}", json.to_string());
Ok(fs::write(&self.config_path, &json.to_string())?)