From bb2f309335e05b1bb06748a1a1e3319836435e24 Mon Sep 17 00:00:00 2001 From: ivmarkov Date: Mon, 18 Sep 2023 05:41:26 +0000 Subject: [PATCH] Split should be &mut self --- src/uart.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uart.rs b/src/uart.rs index bd23bba9423..4ec3791ddbb 100644 --- a/src/uart.rs +++ b/src/uart.rs @@ -738,7 +738,7 @@ impl<'d> UartDriver<'d> { } /// Split the serial driver in separate TX and RX drivers - pub fn split(&self) -> (UartTxDriver<'_>, UartRxDriver<'_>) { + pub fn split(&mut self) -> (UartTxDriver<'_>, UartRxDriver<'_>) { ( UartTxDriver { port: self.port, @@ -1402,7 +1402,7 @@ where /// Split the serial driver in separate TX and RX drivers pub fn split( - &self, + &mut self, ) -> ( AsyncUartTxDriver<'_, UartTxDriver<'_>>, AsyncUartRxDriver<'_, UartRxDriver<'_>>,