From e813ab9e3a58c67e7322dd4c74d8b49ac162a569 Mon Sep 17 00:00:00 2001 From: Mario Krehl Date: Wed, 7 Sep 2016 11:24:36 +0200 Subject: [PATCH] Pretty output of --versions --- bin/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/src/main.rs b/bin/src/main.rs index f8259d52..70aaf5d0 100644 --- a/bin/src/main.rs +++ b/bin/src/main.rs @@ -159,7 +159,7 @@ fn main() { let v = Command::new(format!("imag-{}",command)).arg("--version").output(); match v { Ok(v) => match String::from_utf8(v.stdout) { - Ok(s) => format!("{} -> {}", command, s), + Ok(s) => format!("{:10} -> {}", command, s), Err(e) => format!("Failed calling {} -> {:?}", command, e), }, Err(e) => format!("Failed calling {} -> {:?}", command, e), @@ -169,7 +169,7 @@ fn main() { } for versionstring in result.into_iter().map(|handle| handle.join()) { - println!("{}", versionstring); + print!("{}", versionstring); } }