From dc28a42fd2fde57d66a692dd12ada3bdafa3c295 Mon Sep 17 00:00:00 2001 From: Alpha3__0 Date: Thu, 25 May 2023 11:55:05 -0700 Subject: [PATCH] Fix return definition --- embassy-rp/src/uart/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embassy-rp/src/uart/mod.rs b/embassy-rp/src/uart/mod.rs index 7bd7be41..44e0ca0f 100644 --- a/embassy-rp/src/uart/mod.rs +++ b/embassy-rp/src/uart/mod.rs @@ -758,7 +758,7 @@ mod eh02 { impl<'d, T: Instance, M: Mode> embedded_hal_02::serial::Write for UartTx<'d, T, M> { type Error = Error; - fn write(&mut self, word: u8) -> nb::Result<(), Self::Error> { + fn write(&mut self, word: u8) -> Result<(), nb::Error> { let r = T::regs(); unsafe { if r.uartfr().read().txff() { @@ -770,7 +770,7 @@ mod eh02 { Ok(()) } - fn flush(&mut self) -> nb::Result<(), Self::Error> { + fn flush(&mut self) -> Result<(), nb::Error> { let r = T::regs(); unsafe { if !r.uartfr().read().txfe() {