diff --git a/cargo-dist/src/backend/ci/github.rs b/cargo-dist/src/backend/ci/github.rs index 010b9416d..f1a629cbd 100644 --- a/cargo-dist/src/backend/ci/github.rs +++ b/cargo-dist/src/backend/ci/github.rs @@ -251,16 +251,16 @@ fn install_dist_for_github_runner<'a>( } } -fn brewfile_from(packages: &Vec) -> String { +fn brewfile_from(packages: &[String]) -> String { let brewfile_lines: Vec = packages - .into_iter() + .iter() .map(|p| format!(r#"brew "{p}""#).to_owned()) .collect(); brewfile_lines.join("\n") } -fn brew_bundle_command(packages: &Vec) -> String { +fn brew_bundle_command(packages: &[String]) -> String { format!( r#"cat << EOF >Brewfile {}