Skip to content

Commit aee103b

Browse files
committed
Satisfy cargo fmt
1 parent b2f3862 commit aee103b

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

sdk/core/src/pipeline.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ impl Pipeline {
3030
per_retry_policies: Vec<Arc<dyn Policy>>,
3131
transport_policy: Arc<dyn Policy>,
3232
) -> Self {
33-
let mut pipeline: Vec<Arc<dyn Policy>> = Vec::with_capacity(
34-
per_call_policies.len() + per_retry_policies.len() + 3,
35-
);
33+
let mut pipeline: Vec<Arc<dyn Policy>> =
34+
Vec::with_capacity(per_call_policies.len() + per_retry_policies.len() + 3);
3635

3736
// TODO: Create pipeline from ClientOptions which should contain user-specified policies + client-added policies.
3837
pipeline.push(Arc::new(TelemetryPolicy::default()));

sdk/core/src/policies/telemetry_policy.rs

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,31 +25,19 @@ impl TelemetryPolicy {
2525
pub fn new(options: TelemetryOptions) -> Self {
2626
let crate_name = env!("CARGO_PKG_NAME");
2727
let crate_version = env!("CARGO_PKG_VERSION");
28-
let platform_info = format!(
29-
"({}; {}; {})",
30-
env!("AZSDK_RUSTC_VERSION"),
31-
OS,
32-
ARCH,
33-
);
28+
let platform_info = format!("({}; {}; {})", env!("AZSDK_RUSTC_VERSION"), OS, ARCH,);
3429
let header = match options.application_id {
3530
Some(application_id) => format!(
3631
"{} azsdk-rust-{}/{} {}",
37-
application_id,
38-
crate_name,
39-
crate_version,
40-
platform_info
32+
application_id, crate_name, crate_version, platform_info
4133
),
4234
None => format!(
4335
"azsdk-rust-{}/{} {}",
44-
crate_name,
45-
crate_version,
46-
platform_info
36+
crate_name, crate_version, platform_info
4737
),
4838
};
4939

50-
TelemetryPolicy {
51-
header: header,
52-
}
40+
TelemetryPolicy { header: header }
5341
}
5442
}
5543

0 commit comments

Comments
 (0)