diff --git a/worker/src/d1/mod.rs b/worker/src/d1/mod.rs index bb62b133..18f31746 100644 --- a/worker/src/d1/mod.rs +++ b/worker/src/d1/mod.rs @@ -207,13 +207,13 @@ pub trait D1Argument { fn js_value(&self) -> impl AsRef; } -impl<'a> D1Argument for D1Type<'a> { +impl D1Argument for D1Type<'_> { fn js_value(&self) -> impl AsRef { Into::::into(self) } } -impl<'a> D1Argument for D1PreparedArgument<'a> { +impl D1Argument for D1PreparedArgument<'_> { fn js_value(&self) -> impl AsRef { &self.js_value } diff --git a/worker/src/r2/builder.rs b/worker/src/r2/builder.rs index df8bce32..4f3491b7 100644 --- a/worker/src/r2/builder.rs +++ b/worker/src/r2/builder.rs @@ -20,7 +20,7 @@ pub struct GetOptionsBuilder<'bucket> { pub(crate) range: Option, } -impl<'bucket> GetOptionsBuilder<'bucket> { +impl GetOptionsBuilder<'_> { /// Specifies that the object should only be returned given satisfaction of certain conditions /// in the [R2Conditional]. Refer to [Conditional operations](https://developers.cloudflare.com/r2/runtime-apis/#conditional-operations). pub fn only_if(mut self, only_if: Conditional) -> Self { @@ -174,7 +174,7 @@ pub struct PutOptionsBuilder<'bucket> { pub(crate) checksum_algorithm: String, } -impl<'bucket> PutOptionsBuilder<'bucket> { +impl PutOptionsBuilder<'_> { /// Various HTTP headers associated with the object. Refer to [HttpMetadata]. pub fn http_metadata(mut self, metadata: HttpMetadata) -> Self { self.http_metadata = Some(metadata); @@ -265,7 +265,7 @@ pub struct CreateMultipartUploadOptionsBuilder<'bucket> { pub(crate) custom_metadata: Option>, } -impl<'bucket> CreateMultipartUploadOptionsBuilder<'bucket> { +impl CreateMultipartUploadOptionsBuilder<'_> { /// Various HTTP headers associated with the object. Refer to [HttpMetadata]. pub fn http_metadata(mut self, metadata: HttpMetadata) -> Self { self.http_metadata = Some(metadata); @@ -362,7 +362,7 @@ pub struct ListOptionsBuilder<'bucket> { pub(crate) include: Option>, } -impl<'bucket> ListOptionsBuilder<'bucket> { +impl ListOptionsBuilder<'_> { /// The number of results to return. Defaults to 1000, with a maximum of 1000. pub fn limit(mut self, limit: u32) -> Self { self.limit = Some(limit); diff --git a/worker/src/r2/mod.rs b/worker/src/r2/mod.rs index b11cb743..36869375 100644 --- a/worker/src/r2/mod.rs +++ b/worker/src/r2/mod.rs @@ -281,7 +281,7 @@ pub struct ObjectBody<'body> { inner: &'body EdgeR2ObjectBody, } -impl<'body> ObjectBody<'body> { +impl ObjectBody<'_> { /// Reads the data in the [Object] via a [ByteStream]. pub fn stream(self) -> Result { if self.inner.body_used()? {