mirror of
https://github.com/esp-rs/esp-idf-hal.git
synced 2025-09-28 21:01:26 +00:00
Clippy
This commit is contained in:
parent
cdc1eeecec
commit
57cc53dae7
@ -1456,7 +1456,7 @@ pub mod continuous {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(esp_idf_adc_continuous_isr_iram_safe))]
|
#[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> {
|
async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error> {
|
||||||
self.read_bytes_async(buf).await.map_err(EspIOError)
|
self.read_bytes_async(buf).await.map_err(EspIOError)
|
||||||
}
|
}
|
||||||
|
@ -1301,7 +1301,7 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(esp_idf_version_major = "4"))]
|
#[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
|
where
|
||||||
Dir: I2sRxSupported,
|
Dir: I2sRxSupported,
|
||||||
{
|
{
|
||||||
@ -1311,7 +1311,7 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(esp_idf_version_major = "4"))]
|
#[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
|
where
|
||||||
Dir: I2sTxSupported,
|
Dir: I2sTxSupported,
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user