1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-11-30 08:08:18 +00:00

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

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(())
}