From a9828376047ee3ec2344e4ef94df0c0efa0318d1 Mon Sep 17 00:00:00 2001 From: Paolo Barbolini Date: Thu, 5 Sep 2024 10:43:42 +0200 Subject: [PATCH] chore(clippy): fix latest warnings --- src/actions/delete_objects.rs | 2 +- src/signing/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions/delete_objects.rs b/src/actions/delete_objects.rs index 8ba12fb..5ac666d 100644 --- a/src/actions/delete_objects.rs +++ b/src/actions/delete_objects.rs @@ -104,7 +104,7 @@ where let req = DeleteSerde { objects, - quiet: self.quiet.then(|| true), + quiet: self.quiet.then_some(true), }; let body = quick_xml::se::to_string(&req).unwrap(); diff --git a/src/signing/mod.rs b/src/signing/mod.rs index f5baf1a..776aaed 100644 --- a/src/signing/mod.rs +++ b/src/signing/mod.rs @@ -12,7 +12,7 @@ mod signature; mod string_to_sign; pub(crate) mod util; -#[allow(clippy::too_many_arguments)] +#[allow(clippy::too_many_arguments, clippy::map_identity)] pub fn sign<'a, Q, H>( date: &OffsetDateTime, method: Method,