From 635aa46987a439483bc67c5b2ddbee55880c30b4 Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Fri, 17 Feb 2017 11:44:44 -0500 Subject: [PATCH] use space, not dash, in `cargo --version` output #3604 inadvertently changed the output format of `cargo --version`: ``` froydnj@hawkeye:~/src/cargo.git$ ./target/x86_64-unknown-linux-gnu/release/cargo --version cargo-0.17.0-dev (ae4a4d8 2017-01-27) froydnj@hawkeye:~/src/cargo.git$ cargo --version cargo 0.16.0-nightly (6e0c18c 2017-01-27) ``` Note the dash between cargo and the version number in the newer version. Let's put the space back to not break things that might depend on the `--version` output. --- src/cargo/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/lib.rs b/src/cargo/lib.rs index 9da4379f8df..455ffd4238b 100755 --- a/src/cargo/lib.rs +++ b/src/cargo/lib.rs @@ -75,7 +75,7 @@ pub struct VersionInfo { impl fmt::Display for VersionInfo { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "cargo-{}.{}.{}", + write!(f, "cargo {}.{}.{}", self.major, self.minor, self.patch)?; match self.cfg_info.as_ref().map(|ci| &ci.release_channel) { Some(channel) => {