4129: Don't print cargo version to stdout, breaking everything r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2020-04-24 21:03:46 +00:00 committed by GitHub
commit 57b3dda980
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,7 +143,7 @@ pub fn from_cargo_metadata(
) -> Result<CargoWorkspace> { ) -> Result<CargoWorkspace> {
let _ = Command::new(cargo_binary()) let _ = Command::new(cargo_binary())
.arg("--version") .arg("--version")
.status() .output()
.context("failed to run `cargo --version`, is `cargo` in PATH?")?; .context("failed to run `cargo --version`, is `cargo` in PATH?")?;
let mut meta = MetadataCommand::new(); let mut meta = MetadataCommand::new();