Skip to content

Commit 9b27404

Browse files
committed
Fix warnings introduced with rust 1.82
1 parent 906b83a commit 9b27404

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/can-echo.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ fn main() -> ! {
122122
block!(can.transmit(header, &buffer)).unwrap();
123123

124124
loop {
125-
if let Ok(rxheader) = block!(can.receive0(&mut buffer)) {
126-
block!(can.transmit(rxheader.unwrap().to_tx_header(None), &buffer)).unwrap();
127-
}
125+
let Ok(rxheader) = block!(can.receive0(&mut buffer));
126+
block!(can.transmit(rxheader.unwrap().to_tx_header(None), &buffer)).unwrap();
128127
}
129128
}

0 commit comments

Comments
 (0)