mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
rustfmt
This commit is contained in:
parent
68b3fbe348
commit
d8821dd7d7
@ -316,8 +316,8 @@ impl<'d, T: Instance> BufferedUartRx<'d, T> {
|
||||
});
|
||||
}
|
||||
|
||||
/// we are ready to read if there is data in the buffer
|
||||
fn read_ready() -> Result<bool, Error>{
|
||||
/// we are ready to read if there is data in the buffer
|
||||
fn read_ready() -> Result<bool, Error> {
|
||||
let state = T::buffered_state();
|
||||
Ok(!state.rx_buf.is_empty())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user