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);