File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,12 @@ pub struct ClientOptions {
36
36
37
37
impl ClientOptions {
38
38
/// A mutable reference to per-call policies.
39
- pub fn mut_per_call_policies ( & mut self ) -> & mut Vec < Arc < dyn Policy > > {
39
+ pub fn per_call_policies_mut ( & mut self ) -> & mut Vec < Arc < dyn Policy > > {
40
40
& mut self . per_call_policies
41
41
}
42
42
43
43
/// A mutable reference to per-retry policies.
44
- pub fn mut_per_retry_policies ( & mut self ) -> & mut Vec < Arc < dyn Policy > > {
44
+ pub fn per_retry_policies_mut ( & mut self ) -> & mut Vec < Arc < dyn Policy > > {
45
45
& mut self . per_retry_policies
46
46
}
47
47
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ pub struct FixedRetryPolicy {
19
19
20
20
impl FixedRetryPolicy {
21
21
pub ( crate ) fn new ( delay : Duration , max_retries : u32 , max_delay : Duration ) -> Self {
22
- FixedRetryPolicy {
22
+ Self {
23
23
delay,
24
24
max_retries,
25
25
max_delay,
You can’t perform that action at this time.
0 commit comments