mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2025-02-25 18:55:26 -06:00
Make config json pretty
This commit is contained in:
@@ -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())?)
|
||||
|
||||
Reference in New Issue
Block a user