Fix debug formatting

pull/20/head
Arijit Basu 3 years ago committed by Arijit Basu
parent 65b7412579
commit 53fd92b680

@ -83,7 +83,7 @@ fn main() -> Result<()> {
while let Some(msg) = app.pop_msg_out() {
match msg {
app::MsgOut::Debug(path) => {
fs::write(&path, format!("{}\n", serde_yaml::to_string(&app)?))?;
fs::write(&path, serde_yaml::to_string(&app)?)?;
}
app::MsgOut::PrintResultAndQuit => {
@ -92,7 +92,7 @@ fn main() -> Result<()> {
}
app::MsgOut::PrintAppStateAndQuit => {
let out = format!("{}\n", serde_yaml::to_string(&app)?);
let out = serde_yaml::to_string(&app)?;
output = Some(out);
break 'outer;
}

Loading…
Cancel
Save