Skip to content

Commit

Permalink
Avoid duplicate generic function
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski authored and taiki-e committed Sep 1, 2023
1 parent 611ca92 commit 09913d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ fn exec_on_package(

match kind {
Kind::Each { features } => {
for f in features {
exec_cargo_with_features(cx, id, &line, progress, keep_going, Some(f))?;
for &f in features {
exec_cargo_with_features(cx, id, &line, progress, keep_going, &[f])?;
}
}
Kind::Powerset { features } => {
Expand Down Expand Up @@ -415,7 +415,7 @@ fn exec_cargo_with_features(
line: &ProcessBuilder<'_>,
progress: &mut Progress,
keep_going: &mut KeepGoing,
features: impl IntoIterator<Item = impl AsRef<str>>,
features: &[&Feature],
) -> Result<()> {
let mut line = line.clone();
line.append_features(features);
Expand Down

0 comments on commit 09913d6

Please sign in to comment.