From 57cc53dae7e27aab6585655e81e49db962f7139d Mon Sep 17 00:00:00 2001 From: ivmarkov Date: Tue, 5 Nov 2024 10:21:54 +0000 Subject: [PATCH] Clippy --- src/adc.rs | 2 +- src/i2s.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/adc.rs b/src/adc.rs index 2f9c2afa7..39bfbc0f7 100644 --- a/src/adc.rs +++ b/src/adc.rs @@ -1456,7 +1456,7 @@ pub mod continuous { } #[cfg(not(esp_idf_adc_continuous_isr_iram_safe))] - impl<'d> embedded_io_async::Read for AdcDriver<'d> { + impl embedded_io_async::Read for AdcDriver<'_> { async fn read(&mut self, buf: &mut [u8]) -> Result { self.read_bytes_async(buf).await.map_err(EspIOError) } diff --git a/src/i2s.rs b/src/i2s.rs index e597bf934..312fecaf9 100644 --- a/src/i2s.rs +++ b/src/i2s.rs @@ -1301,7 +1301,7 @@ where } #[cfg(not(esp_idf_version_major = "4"))] -impl<'d, Dir> embedded_io_async::Read for I2sDriver<'d, Dir> +impl embedded_io_async::Read for I2sDriver<'_, Dir> where Dir: I2sRxSupported, { @@ -1311,7 +1311,7 @@ where } #[cfg(not(esp_idf_version_major = "4"))] -impl<'d, Dir> embedded_io_async::Write for I2sDriver<'d, Dir> +impl embedded_io_async::Write for I2sDriver<'_, Dir> where Dir: I2sTxSupported, {