Skip to content

Commit 62be49f

Browse files
committed
Format code.
1 parent d252f98 commit 62be49f

File tree

2 files changed

+66
-68
lines changed

2 files changed

+66
-68
lines changed

sdk/storage/src/core/clients/storage_client.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ pub struct StorageClient {
99
}
1010

1111
impl StorageClient {
12-
pub(crate) fn new(
13-
storage_account_client: StorageAccountClient,
14-
) -> Self {
12+
pub(crate) fn new(storage_account_client: StorageAccountClient) -> Self {
1513
Self {
1614
storage_account_client,
1715
}

sdk/storage/src/data_lake/clients/data_lake_client.rs

Lines changed: 65 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -13,71 +13,71 @@ use url::{ParseError, Url};
1313

1414
const DEFAULT_DNS_SUFFIX: &str = "dfs.core.windows.net";
1515

16-
pub trait AsDataLakeClient<A: Into<String>> {
17-
fn as_data_lake_client(
18-
&self,
19-
account: A,
20-
bearer_token: String,
21-
) -> Result<Arc<DataLakeClient>, url::ParseError>;
22-
23-
#[cfg(feature = "mock_transport_framework")]
24-
fn as_data_lake_client_with_transaction(
25-
&self,
26-
account: A,
27-
bearer_token: String,
28-
transaction_name: impl Into<String>,
29-
) -> Result<Arc<DataLakeClient>, url::ParseError>;
30-
}
31-
32-
pub trait AsCustomDataLakeClient<DS: Into<String>, A: Into<String>> {
33-
fn as_data_lake_client_with_custom_dns_suffix(
34-
&self,
35-
account: A,
36-
bearer_token: String,
37-
dns_suffix: DS,
38-
) -> Result<Arc<DataLakeClient>, url::ParseError>;
39-
}
40-
41-
impl<A: Into<String>> AsDataLakeClient<A> for StorageClient {
42-
fn as_data_lake_client(
43-
&self,
44-
account: A,
45-
bearer_token: String,
46-
) -> Result<Arc<DataLakeClient>, url::ParseError> {
47-
DataLakeClient::new(self.clone(), account.into(), bearer_token, None)
48-
}
49-
50-
#[cfg(feature = "mock_transport_framework")]
51-
fn as_data_lake_client_with_transaction(
52-
&self,
53-
account: A,
54-
bearer_token: String,
55-
transaction_name: impl Into<String>,
56-
) -> Result<Arc<DataLakeClient>, url::ParseError> {
57-
DataLakeClient::new_with_transaction(
58-
self.clone(),
59-
account.into(),
60-
bearer_token,
61-
transaction_name,
62-
)
63-
}
64-
}
65-
66-
impl<DS: Into<String>, A: Into<String>> AsCustomDataLakeClient<DS, A> for StorageClient {
67-
fn as_data_lake_client_with_custom_dns_suffix(
68-
&self,
69-
account: A,
70-
bearer_token: String,
71-
dns_suffix: DS,
72-
) -> Result<Arc<DataLakeClient>, url::ParseError> {
73-
DataLakeClient::new(
74-
self.clone(),
75-
account.into(),
76-
bearer_token,
77-
Some(dns_suffix.into()),
78-
)
79-
}
80-
}
16+
// pub trait AsDataLakeClient<A: Into<String>> {
17+
// fn as_data_lake_client(
18+
// &self,
19+
// account: A,
20+
// bearer_token: String,
21+
// ) -> Result<Arc<DataLakeClient>, url::ParseError>;
22+
//
23+
// #[cfg(feature = "mock_transport_framework")]
24+
// fn as_data_lake_client_with_transaction(
25+
// &self,
26+
// account: A,
27+
// bearer_token: String,
28+
// transaction_name: impl Into<String>,
29+
// ) -> Result<Arc<DataLakeClient>, url::ParseError>;
30+
// }
31+
//
32+
// pub trait AsCustomDataLakeClient<DS: Into<String>, A: Into<String>> {
33+
// fn as_data_lake_client_with_custom_dns_suffix(
34+
// &self,
35+
// account: A,
36+
// bearer_token: String,
37+
// dns_suffix: DS,
38+
// ) -> Result<Arc<DataLakeClient>, url::ParseError>;
39+
// }
40+
//
41+
// impl<A: Into<String>> AsDataLakeClient<A> for StorageClient {
42+
// fn as_data_lake_client(
43+
// &self,
44+
// account: A,
45+
// bearer_token: String,
46+
// ) -> Result<Arc<DataLakeClient>, url::ParseError> {
47+
// DataLakeClient::new(self.clone(), account.into(), bearer_token, None)
48+
// }
49+
//
50+
// #[cfg(feature = "mock_transport_framework")]
51+
// fn as_data_lake_client_with_transaction(
52+
// &self,
53+
// account: A,
54+
// bearer_token: String,
55+
// transaction_name: impl Into<String>,
56+
// ) -> Result<Arc<DataLakeClient>, url::ParseError> {
57+
// DataLakeClient::new_with_transaction(
58+
// self.clone(),
59+
// account.into(),
60+
// bearer_token,
61+
// transaction_name,
62+
// )
63+
// }
64+
// }
65+
//
66+
// impl<DS: Into<String>, A: Into<String>> AsCustomDataLakeClient<DS, A> for StorageClient {
67+
// fn as_data_lake_client_with_custom_dns_suffix(
68+
// &self,
69+
// account: A,
70+
// bearer_token: String,
71+
// dns_suffix: DS,
72+
// ) -> Result<Arc<DataLakeClient>, url::ParseError> {
73+
// DataLakeClient::new(
74+
// self.clone(),
75+
// account.into(),
76+
// bearer_token,
77+
// Some(dns_suffix.into()),
78+
// )
79+
// }
80+
// }
8181

8282
#[derive(Debug, Clone)]
8383
pub struct DataLakeClient {

0 commit comments

Comments
 (0)