From d5fdb0e1ac7437ec2be8a27d7a4022efcb628650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Misty=20De=20M=C3=A9o?= Date: Thu, 14 Sep 2023 16:16:43 -0700 Subject: [PATCH] clippy --- cargo-dist/src/backend/ci/github.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {}