From dbcbd3df7381bbba1bcb0b4080254514c397c1fe Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Sat, 13 Feb 2021 06:39:06 +0200 Subject: [PATCH] Don't print a warning about cargo-update if cargo isn't installed (fix #630) --- src/steps/generic.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/steps/generic.rs b/src/steps/generic.rs index b5f6080f..a1570749 100644 --- a/src/steps/generic.rs +++ b/src/steps/generic.rs @@ -16,6 +16,8 @@ use std::process::Command; use tempfile::tempfile_in; pub fn run_cargo_update(run_type: RunType) -> Result<()> { + utils::require("cargo")?; + print_separator("Cargo"); let cargo_update = match utils::require("cargo-install-update") {