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:
parent
ef84379b62
commit
cdfa550110
|
|
@ -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(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue