From a549dc541fb22c7fe7a6c4c3c94e19580e701992 Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Fri, 10 Jan 2025 14:24:41 -0500 Subject: [PATCH] sprinkle more allows --- object_store/src/aws/client.rs | 1 + object_store/src/azure/client.rs | 1 + object_store/src/gcp/client.rs | 1 + 3 files changed, 3 insertions(+) diff --git a/object_store/src/aws/client.rs b/object_store/src/aws/client.rs index 82348b267c80..1076e3fb5c9b 100644 --- a/object_store/src/aws/client.rs +++ b/object_store/src/aws/client.rs @@ -291,6 +291,7 @@ pub(crate) struct Request<'a> { retry_error_body: bool, } +#[allow(clippy::needless_lifetimes)] impl<'a> Request<'a> { pub(crate) fn query(self, query: &T) -> Self { let builder = self.builder.query(query); diff --git a/object_store/src/azure/client.rs b/object_store/src/azure/client.rs index e78f8db7a8c8..df8f90cbfe24 100644 --- a/object_store/src/azure/client.rs +++ b/object_store/src/azure/client.rs @@ -170,6 +170,7 @@ struct PutRequest<'a> { idempotent: bool, } +#[allow(clippy::needless_lifetimes)] impl<'a> PutRequest<'a> { fn header(self, k: &HeaderName, v: &str) -> Self { let builder = self.builder.header(k, v); diff --git a/object_store/src/gcp/client.rs b/object_store/src/gcp/client.rs index ccc9c341f2fe..d80d3d625f05 100644 --- a/object_store/src/gcp/client.rs +++ b/object_store/src/gcp/client.rs @@ -174,6 +174,7 @@ pub(crate) struct Request<'a> { idempotent: bool, } +#[allow(clippy::needless_lifetimes)] impl<'a> Request<'a> { fn header(self, k: &HeaderName, v: &str) -> Self { let builder = self.builder.header(k, v);