diff --git a/bindings/rust/s2n-tls-tokio/src/lib.rs b/bindings/rust/s2n-tls-tokio/src/lib.rs index 8f6029a5a8f..de436951d25 100644 --- a/bindings/rust/s2n-tls-tokio/src/lib.rs +++ b/bindings/rust/s2n-tls-tokio/src/lib.rs @@ -432,7 +432,7 @@ where stream: &'a mut TlsStream, } -impl<'a, S, C> Future for ApplyBlinding<'a, S, C> +impl Future for ApplyBlinding<'_, S, C> where C: AsRef + AsMut + Unpin, S: AsyncRead + AsyncWrite + Unpin, diff --git a/bindings/rust/s2n-tls/src/cert_chain.rs b/bindings/rust/s2n-tls/src/cert_chain.rs index 007657d15f5..e95502c1fc9 100644 --- a/bindings/rust/s2n-tls/src/cert_chain.rs +++ b/bindings/rust/s2n-tls/src/cert_chain.rs @@ -135,7 +135,7 @@ pub struct Certificate<'a> { certificate: NonNull, } -impl<'a> Certificate<'a> { +impl Certificate<'_> { pub fn der(&self) -> Result<&[u8], Error> { unsafe { let mut buffer = ptr::null();