diff --git a/examples/bigquery-storage-write-client/src/main.rs b/examples/bigquery-storage-write-client/src/main.rs index 9edd13bef..6c118475e 100644 --- a/examples/bigquery-storage-write-client/src/main.rs +++ b/examples/bigquery-storage-write-client/src/main.rs @@ -5,10 +5,10 @@ use gcloud_sdk::google::cloud::bigquery::storage::v1::{ append_rows_request, AppendRowsRequest, AppendRowsResponse, ProtoRows, ProtoSchema, }; -use gcloud_sdk::google::cloud::bigquery::v2::dataset_service_client::DatasetServiceClient; -use gcloud_sdk::*; use crate::prost::*; use crate::prost_types::*; +use gcloud_sdk::google::cloud::bigquery::v2::dataset_service_client::DatasetServiceClient; +use gcloud_sdk::*; #[derive(Clone, PartialEq, ::prost::Message)] struct MySchemaRow { @@ -34,12 +34,13 @@ async fn main() -> Result<(), Box> { let dataset = std::env::var("BQ_DATASET").expect("No BigQuery dataset is specified"); let table = std::env::var("BQ_TABLE").expect("No BigQuery table is specified"); - let write_client: GoogleApi> = GoogleApi::from_function( - BigQueryWriteClient::new, - "https://bigquerystorage.googleapis.com", - None, - ) - .await?; + let write_client: GoogleApi> = + GoogleApi::from_function( + BigQueryWriteClient::new, + "https://bigquerystorage.googleapis.com", + None, + ) + .await?; let rows_schema = ProtoSchema { proto_descriptor: Some(DescriptorProto {