pretty print settings.json

This commit is contained in:
Alula 2022-01-06 19:49:20 +01:00
parent ef84379b62
commit cdfa550110
No known key found for this signature in database
GPG Key ID: 3E00485503A1D8BA
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ impl Settings {
pub fn save(&self, ctx: &Context) -> GameResult {
let file = user_create(ctx, "/settings.json")?;
serde_json::to_writer(file, self)?;
serde_json::to_writer_pretty(file, self)?;
Ok(())
}