Skip to content

Commit

Permalink
Split should be &mut self
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Sep 19, 2023
1 parent 0324e3d commit bb2f309
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/uart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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<'_>>,
Expand Down

0 comments on commit bb2f309

Please sign in to comment.