From 4f0454f24addb4508da7fb485bb55bf251accbb8 Mon Sep 17 00:00:00 2001 From: Robert Pack Date: Mon, 10 Apr 2023 13:14:20 +0200 Subject: [PATCH] fix: clippy --- object-store/src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/object-store/src/lib.rs b/object-store/src/lib.rs index 6ef833a..ec1bab6 100644 --- a/object-store/src/lib.rs +++ b/object-store/src/lib.rs @@ -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; } @@ -418,6 +420,7 @@ impl PyClientOptions { retry_timeout = None, ))] /// Create a new ObjectStore instance + #[allow(clippy::too_many_arguments)] fn new( user_agent: Option, content_type_map: Option>,