Skip to content

Commit f30d4dd

Browse files
committed
Fixed Clippy Warning
1 parent 407eb4c commit f30d4dd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/recovery/forge_extensions.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ use crate::recovery::{RetryPolicy, CircuitBreaker};
55
pub trait ForgeErrorRecovery: ForgeError {
66
/// Create a retry policy optimized for this error type
77
fn create_retry_policy(&self, max_retries: usize) -> RetryPolicy {
8-
let policy = RetryPolicy::new_exponential()
9-
.with_max_retries(max_retries);
10-
policy
8+
RetryPolicy::new_exponential()
9+
.with_max_retries(max_retries)
1110
}
1211

1312
/// Execute a fallible operation with retries if this error type is retryable

0 commit comments

Comments
 (0)