mirror of
https://github.com/DNSCrypt/encrypted-dns-server.git
synced 2024-05-19 14:36:06 +02:00
un-pretty toml state file
This commit is contained in:
parent
1393e235a9
commit
32be74338f
|
@ -131,7 +131,7 @@ impl State {
|
|||
let mut fpb = tokio::fs::OpenOptions::new();
|
||||
let fpb = fpb.create(true).write(true);
|
||||
let mut fp = fpb.open(&path_tmp).await?;
|
||||
let state_str = toml::to_string_pretty(&self)?;
|
||||
let state_str = toml::to_string(&self)?;
|
||||
fp.write_all(state_str.as_bytes()).await?;
|
||||
fp.sync_data().await?;
|
||||
mem::drop(fp);
|
||||
|
|
Loading…
Reference in New Issue