Skip to content

Commit b53816d

Browse files
committed
Fix clippy error
1 parent 5ed5a70 commit b53816d

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

sdk/core/src/options.rs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,37 +15,20 @@ use std::time::Duration;
1515
/// .retry(RetryOptions::default().max_retries(10u32))
1616
/// .telemetry(TelemetryOptions::default().application_id("my-application"));
1717
/// ```
18-
#[derive(Clone, Debug)]
18+
#[derive(Clone, Debug, Default)]
1919
pub struct ClientOptions {
20-
// TODO: Expose transport override.
2120
/// Policies called per call.
2221
pub(crate) per_call_policies: Vec<Arc<dyn Policy>>,
23-
2422
/// Policies called per retry.
2523
pub(crate) per_retry_policies: Vec<Arc<dyn Policy>>,
26-
2724
/// Retry options.
2825
pub(crate) retry: RetryOptions,
29-
3026
/// Telemetry options.
3127
pub(crate) telemetry: TelemetryOptions,
32-
3328
/// Transport options.
3429
pub(crate) transport: TransportOptions,
3530
}
3631

37-
impl Default for ClientOptions {
38-
fn default() -> Self {
39-
Self {
40-
per_call_policies: Vec::new(),
41-
per_retry_policies: Vec::new(),
42-
retry: RetryOptions::default(),
43-
telemetry: TelemetryOptions::default(),
44-
transport: TransportOptions::default(),
45-
}
46-
}
47-
}
48-
4932
impl ClientOptions {
5033
pub fn new() -> Self {
5134
Self::default()

0 commit comments

Comments
 (0)