From 5fcba1c0b19edf36be3c7f1ee2bc786efedbafaf Mon Sep 17 00:00:00 2001 From: innocentzero Date: Sun, 12 May 2024 19:40:36 +0530 Subject: [PATCH] refactor(cargo): rename variable and remove debug line Signed-off-by: innocentzero --- src/steps/generic.rs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/steps/generic.rs b/src/steps/generic.rs index f5992ab1..9a8b1d0f 100644 --- a/src/steps/generic.rs +++ b/src/steps/generic.rs @@ -146,22 +146,21 @@ fn manual_cargo_updates(crates_json: PathBuf) -> Result<()> { return Err(SkipStep("Improper .crates2.json".to_string()).into()); } } - println!("{feature_packages:?}"); for (package, all_features, no_default, feature) in feature_packages { let feature: Vec<_> = feature.iter().map(|feat| feat.as_str().unwrap()).collect(); - let mut command = Command::new("cargo"); - command.args(["install", package]); + let mut install_command = Command::new("cargo"); + install_command.args(["install", package]); if all_features { - command.arg("--all-features"); + install_command.arg("--all-features"); } if no_default { - command.arg("--no-default-features"); + install_command.arg("--no-default-features"); } - command.arg("--features"); - command.args(feature); + install_command.arg("--features"); + install_command.args(feature); - command.status_checked()?; + install_command.status_checked()?; } install_command.status_checked() }