Skip to content

Commit 3790343

Browse files
committed
Fix clippy error
1 parent 88d1859 commit 3790343

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/uart.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -961,9 +961,7 @@ impl<'a> UartRx<'a, Async> {
961961
Poll::Ready(Err(Error::Noise))
962962
} else if fifointstat.rxerr().bit_is_set() {
963963
Poll::Ready(Err(Error::Overrun))
964-
} else if stat.rxidle().bit_is_clear() {
965-
Poll::Ready(Ok(()))
966-
} else if stat.start().bit_is_set() {
964+
} else if stat.rxidle().bit_is_clear() || stat.start().bit_is_set() {
967965
Poll::Ready(Ok(()))
968966
} else {
969967
Poll::Pending

0 commit comments

Comments
 (0)