2132: echo cargo version during install r=matklad a=matklad



Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2019-10-30 17:52:02 +00:00 committed by GitHub
commit ce3173469c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -229,6 +229,7 @@ fn install_server(opts: ServerOpt) -> Result<()> {
let mut old_rust = false; let mut old_rust = false;
if let Ok(output) = run_with_output("cargo --version", ".") { if let Ok(output) = run_with_output("cargo --version", ".") {
if let Ok(stdout) = String::from_utf8(output.stdout) { if let Ok(stdout) = String::from_utf8(output.stdout) {
println!("{}", stdout);
if !check_version(&stdout, REQUIRED_RUST_VERSION) { if !check_version(&stdout, REQUIRED_RUST_VERSION) {
old_rust = true; old_rust = true;
} }