From f5ead85377ab78d8f463df4f1e358770ff3eca5b Mon Sep 17 00:00:00 2001 From: Alexander Walter Date: Sat, 14 Dec 2024 15:41:31 +0100 Subject: [PATCH] Just impl Write --- embassy-nrf/src/uarte.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/embassy-nrf/src/uarte.rs b/embassy-nrf/src/uarte.rs index 378325749..ebb4dd941 100644 --- a/embassy-nrf/src/uarte.rs +++ b/embassy-nrf/src/uarte.rs @@ -1068,28 +1068,10 @@ mod _embedded_io { type Error = Error; } - impl<'d, U: Instance> embedded_io_async::ErrorType for UarteRx<'d, U> { - type Error = Error; - } - impl<'d, U: Instance> embedded_io_async::ErrorType for UarteTx<'d, U> { type Error = Error; } - impl<'d, U: Instance> embedded_io_async::Read for Uarte<'d, U> { - async fn read(&mut self, buf: &mut [u8]) -> Result { - self.read(buf).await?; - Ok(buf.len()) - } - } - - impl<'d: 'd, U: Instance> embedded_io_async::Read for UarteRx<'d, U> { - async fn read(&mut self, buf: &mut [u8]) -> Result { - self.read(buf).await?; - Ok(buf.len()) - } - } - impl<'d, U: Instance> embedded_io_async::Write for Uarte<'d, U> { async fn write(&mut self, buf: &[u8]) -> Result { self.write(buf).await?;