1
1
Fork 0
mirror of https://github.com/DNSCrypt/encrypted-dns-server.git synced 2024-05-07 06:36:06 +02:00

un-pretty toml state file

This commit is contained in:
Frank Denis 2023-01-30 21:18:36 +01:00
parent 1393e235a9
commit 32be74338f

View File

@ -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);