Skip to content

Commit

Permalink
refactor(cargo): rename variable and remove debug line
Browse files Browse the repository at this point in the history
Signed-off-by: innocentzero <[email protected]>
  • Loading branch information
InnocentZero committed May 12, 2024
1 parent f4954b1 commit 5fcba1c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/steps/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 5fcba1c

Please sign in to comment.