From 53fd92b6800bf4587483a785b86bf13f8f56982a Mon Sep 17 00:00:00 2001 From: Arijit Basu Date: Tue, 6 Apr 2021 18:31:48 +0530 Subject: [PATCH] Fix debug formatting --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8c51cee..ec903b1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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; }