This commit is contained in:
ivmarkov 2024-11-05 10:21:54 +00:00
parent cdc1eeecec
commit 57cc53dae7
2 changed files with 3 additions and 3 deletions

View File

@ -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<usize, Self::Error> {
self.read_bytes_async(buf).await.map_err(EspIOError)
}

View File

@ -1301,7 +1301,7 @@ where
}
#[cfg(not(esp_idf_version_major = "4"))]
impl<'d, Dir> embedded_io_async::Read for I2sDriver<'d, Dir>
impl<Dir> 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<Dir> embedded_io_async::Write for I2sDriver<'_, Dir>
where
Dir: I2sTxSupported,
{