Skip to content

Commit 8f3688a

Browse files
committed
Cargo Fmt
1 parent 509c3e6 commit 8f3688a

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

examples/lustre-client/src/main.rs

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
#![allow(dead_code)]
22
use gcloud_sdk::google_rest_apis::lustre_v1alpha::Instance;
33

4-
async fn instances_create(project: &str, location: &str, instance_name: &str) -> Result<(), Box<dyn std::error::Error>>{
4+
async fn instances_create(
5+
project: &str,
6+
location: &str,
7+
instance_name: &str,
8+
) -> Result<(), Box<dyn std::error::Error>> {
59
let google_rest_client = gcloud_sdk::GoogleRestApi::new().await?;
610

711
let instance = Instance {
@@ -41,7 +45,11 @@ async fn instances_create(project: &str, location: &str, instance_name: &str) ->
4145
Ok(())
4246
}
4347

44-
async fn instances_delete(project: &str, location: &str, instance_name: &str) -> Result<(), Box<dyn std::error::Error>>{
48+
async fn instances_delete(
49+
project: &str,
50+
location: &str,
51+
instance_name: &str,
52+
) -> Result<(), Box<dyn std::error::Error>> {
4553
let google_rest_client = gcloud_sdk::GoogleRestApi::new().await?;
4654

4755
let response = gcloud_sdk::google_rest_apis::lustre_v1alpha::projects_api::autopush_lustre_sandbox_projects_locations_instances_delete(
@@ -66,7 +74,11 @@ async fn instances_delete(project: &str, location: &str, instance_name: &str) ->
6674
Ok(())
6775
}
6876

69-
async fn instances_get(project: &str, location: &str, instance_name: &str) -> Result<gcloud_sdk::google_rest_apis::lustre_v1alpha::Instance, Box<dyn std::error::Error>>{
77+
async fn instances_get(
78+
project: &str,
79+
location: &str,
80+
instance_name: &str,
81+
) -> Result<gcloud_sdk::google_rest_apis::lustre_v1alpha::Instance, Box<dyn std::error::Error>> {
7082
let google_rest_client = gcloud_sdk::GoogleRestApi::new().await?;
7183

7284
let response = gcloud_sdk::google_rest_apis::lustre_v1alpha::projects_api::autopush_lustre_sandbox_projects_locations_instances_get(
@@ -89,7 +101,11 @@ async fn instances_get(project: &str, location: &str, instance_name: &str) -> Re
89101
Ok(response)
90102
}
91103

92-
async fn instances_list(project: &str, location: &str) -> Result<Vec<gcloud_sdk::google_rest_apis::lustre_v1alpha::Instance>, Box<dyn std::error::Error>>{
104+
async fn instances_list(
105+
project: &str,
106+
location: &str,
107+
) -> Result<Vec<gcloud_sdk::google_rest_apis::lustre_v1alpha::Instance>, Box<dyn std::error::Error>>
108+
{
93109
let google_rest_client = gcloud_sdk::GoogleRestApi::new().await?;
94110

95111
let response = gcloud_sdk::google_rest_apis::lustre_v1alpha::projects_api::autopush_lustre_sandbox_projects_locations_instances_list(

gcloud-sdk/src/rest_apis/google_rest_apis/lustre_v1alpha/apis/projects_api.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ use serde::{Deserialize, Serialize}; /*
99
*/
1010

1111
use super::{configuration, Error};
12-
use crate::{google_rest_apis::lustre_v1alpha::ResponseContent, google_rest_apis::lustre_v1alpha::models};
12+
use crate::{
13+
google_rest_apis::lustre_v1alpha::models, google_rest_apis::lustre_v1alpha::ResponseContent,
14+
};
1315
use reqwest;
1416

1517
/// struct for passing parameters to the method [`autopush_lustre_sandbox_projects_locations_instances_create`]

0 commit comments

Comments
 (0)