Skip to content

Commit 339bf7b

Browse files
committed
build: Fix useless use of vec!
This change is suggested by clippy. Signed-off-by: Akira Moroo <retrage01@gmail.com>
1 parent 3321fde commit 339bf7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/integration.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ mod tests {
122122
.join("cloud-init")
123123
.join("ubuntu");
124124

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

154-
vec!["user-data", "meta-data", "network-config"]
154+
["user-data", "meta-data", "network-config"]
155155
.iter()
156156
.for_each(|x| {
157157
std::process::Command::new("mcopy")

0 commit comments

Comments
 (0)