From 7ff8545beb751d7d4389d50a13ffb97a990b8543 Mon Sep 17 00:00:00 2001 From: James Mayclin Date: Mon, 2 Dec 2024 15:03:40 -0800 Subject: [PATCH] fix(bindings): address clippy issues from 1.83 (#4941) --- bindings/rust/s2n-tls-tokio/src/lib.rs | 2 +- bindings/rust/s2n-tls/src/cert_chain.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();