Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
roeap committed Apr 10, 2023
1 parent e674272 commit 4f0454f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions object-store/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,10 @@ impl PyClientOptions {
if let Some(backoff_base) = self.retry_backoff_base {
backoff.base = backoff_base;
}
let mut config = RetryConfig::default();
config.backoff = backoff;
let mut config = RetryConfig {
backoff,
..Default::default()
};
if let Some(max_retries) = self.retry_max_retries {
config.max_retries = max_retries;
}
Expand Down Expand Up @@ -418,6 +420,7 @@ impl PyClientOptions {
retry_timeout = None,
))]
/// Create a new ObjectStore instance
#[allow(clippy::too_many_arguments)]
fn new(
user_agent: Option<String>,
content_type_map: Option<HashMap<String, String>>,
Expand Down

0 comments on commit 4f0454f

Please sign in to comment.