Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Nov 5, 2024
1 parent cdc1eee commit 57cc53d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/adc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
4 changes: 2 additions & 2 deletions src/i2s.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
{
Expand All @@ -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,
{
Expand Down

0 comments on commit 57cc53d

Please sign in to comment.