Skip to content

Commit 4a967cc

Browse files
committed
Cargo fmt
This is getting fun =)
1 parent 7fe9f3e commit 4a967cc

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

src/modules/terraform.rs

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -54,24 +54,18 @@ impl Module for Terraform {
5454
loop {
5555
// Based on the cloud provider, randomize a resource name
5656
let resource = match cloud {
57-
"AWS" => {
58-
TERRAFORM_AWS_RESOURCES_LIST
59-
.iter()
60-
.choose(&mut rng)
61-
.unwrap()
62-
}
63-
"AZURE" => {
64-
TERRAFORM_AZURE_RESOURCES_LIST
65-
.iter()
66-
.choose(&mut rng)
67-
.unwrap()
68-
}
69-
"GCP" => {
70-
TERRAFORM_GCP_RESOURCES_LIST
71-
.iter()
72-
.choose(&mut rng)
73-
.unwrap()
74-
}
57+
"AWS" => TERRAFORM_AWS_RESOURCES_LIST
58+
.iter()
59+
.choose(&mut rng)
60+
.unwrap(),
61+
"AZURE" => TERRAFORM_AZURE_RESOURCES_LIST
62+
.iter()
63+
.choose(&mut rng)
64+
.unwrap(),
65+
"GCP" => TERRAFORM_GCP_RESOURCES_LIST
66+
.iter()
67+
.choose(&mut rng)
68+
.unwrap(),
7569
_ => unreachable!(),
7670
};
7771

0 commit comments

Comments
 (0)