Skip to content

Commit

Permalink
Fix warnings introduced with rust 1.82
Browse files Browse the repository at this point in the history
  • Loading branch information
usbalbin committed Oct 28, 2024
1 parent 906b83a commit 9b27404
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/can-echo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ fn main() -> ! {
block!(can.transmit(header, &buffer)).unwrap();

loop {
if let Ok(rxheader) = block!(can.receive0(&mut buffer)) {
block!(can.transmit(rxheader.unwrap().to_tx_header(None), &buffer)).unwrap();
}
let Ok(rxheader) = block!(can.receive0(&mut buffer));
block!(can.transmit(rxheader.unwrap().to_tx_header(None), &buffer)).unwrap();
}
}

0 comments on commit 9b27404

Please sign in to comment.