We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 906b83a commit 9b27404Copy full SHA for 9b27404
examples/can-echo.rs
@@ -122,8 +122,7 @@ fn main() -> ! {
122
block!(can.transmit(header, &buffer)).unwrap();
123
124
loop {
125
- if let Ok(rxheader) = block!(can.receive0(&mut buffer)) {
126
- block!(can.transmit(rxheader.unwrap().to_tx_header(None), &buffer)).unwrap();
127
- }
+ let Ok(rxheader) = block!(can.receive0(&mut buffer));
+ block!(can.transmit(rxheader.unwrap().to_tx_header(None), &buffer)).unwrap();
128
}
129
0 commit comments