Skip to content

Commit

Permalink
build: Fix useless use of vec!
Browse files Browse the repository at this point in the history
This change is suggested by clippy.

Signed-off-by: Akira Moroo <[email protected]>
  • Loading branch information
retrage committed Aug 11, 2023
1 parent 1ecf55f commit 5d377ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ mod tests {
.join("cloud-init")
.join("ubuntu");

vec!["meta-data", "user-data"].iter().for_each(|x| {
["meta-data", "user-data"].iter().for_each(|x| {
fs::copy(source_file_dir.join(x), cloud_init_directory.join(x))
.expect("Expect copying cloud-init meta-data to succeed");
});
Expand Down Expand Up @@ -151,7 +151,7 @@ mod tests {
.output()
.expect("Expect creating disk image to succeed");

vec!["user-data", "meta-data", "network-config"]
["user-data", "meta-data", "network-config"]
.iter()
.for_each(|x| {
std::process::Command::new("mcopy")
Expand Down

0 comments on commit 5d377ae

Please sign in to comment.