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 @@ impl CargoWorkspace {
) -> Result<CargoWorkspace> {
let _ = Command::new(cargo_binary())
.arg("--version")
.status()
.output()
.context("failed to run `cargo --version`, is `cargo` in PATH?")?;
let mut meta = MetadataCommand::new();