Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mistydemeo committed Sep 14, 2023
1 parent c2f2814 commit d5fdb0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cargo-dist/src/backend/ci/github.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,16 +251,16 @@ fn install_dist_for_github_runner<'a>(
}
}

fn brewfile_from(packages: &Vec<String>) -> String {
fn brewfile_from(packages: &[String]) -> String {
let brewfile_lines: Vec<String> = packages
.into_iter()
.iter()
.map(|p| format!(r#"brew "{p}""#).to_owned())
.collect();

brewfile_lines.join("\n")
}

fn brew_bundle_command(packages: &Vec<String>) -> String {
fn brew_bundle_command(packages: &[String]) -> String {
format!(
r#"cat << EOF >Brewfile
{}
Expand Down

0 comments on commit d5fdb0e

Please sign in to comment.