Fix build errors in eh_1.0 mode.

This commit is contained in:
Jonathan Pallant 2021-12-26 20:56:48 +00:00
parent 7da16a726f
commit 55acbdb1b0

View file

@ -181,9 +181,9 @@ impl<D: UartDevice, P: ValidUartPinout<D>> eh1::Write<u8> for Writer<D, P> {
} }
fn flush(&mut self) -> nb::Result<(), Self::Error> { fn flush(&mut self) -> nb::Result<(), Self::Error> {
transmit_flushed(&self.device).map_err(|e| match e { transmit_flushed(self.device).map_err(|e| match e {
WouldBlock => WouldBlock, WouldBlock => WouldBlock,
Other(_v) => {} Other(v) => match v {},
}) })
} }
} }