summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-02-18 11:51:51 +0200
committerLars Wirzenius <liw@liw.fi>2021-02-18 11:51:51 +0200
commit0ed5b7355a75fc696cd33cff8eaab13637b97803 (patch)
treed8fc3606b7e6310759d16bad0c464c5612e055ee /src
parentd72c1fa565cf1565f9c0e6e355ab4f4ad22ae0b5 (diff)
downloadsummain-rs-0ed5b7355a75fc696cd33cff8eaab13637b97803.tar.gz
fix: drop unwanted empty lines from output
It turns out that something (serde_yaml) now outputs a newline at the of a document. println! adds a second. Tests don't expect the extra one so use print! instead. Also, drop the temporary workaround.
Diffstat (limited to 'src')
-rw-r--r--src/bin/summain.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/summain.rs b/src/bin/summain.rs
index 20ca738..a2e2b7a 100644
--- a/src/bin/summain.rs
+++ b/src/bin/summain.rs
@@ -11,7 +11,7 @@ fn main() -> anyhow::Result<()> {
opt.pathnames.par_iter().map(|p| manifest(&p)).collect();
for m in v {
let m = m?;
- println!("{}", serde_yaml::to_string(&m)?);
+ print!("{}", serde_yaml::to_string(&m)?);
}
Ok(())
}