Skip to content

Commit bbbd4f6

Browse files
authored
Allow warnings introduced with rust 1.82 (#140)
* Allow warnings introduced with rust 1.82
1 parent 906b83a commit bbbd4f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/can-echo.rs

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

124124
loop {
125+
#[allow(irrefutable_let_patterns)]
125126
if let Ok(rxheader) = block!(can.receive0(&mut buffer)) {
126127
block!(can.transmit(rxheader.unwrap().to_tx_header(None), &buffer)).unwrap();
127128
}

0 commit comments

Comments
 (0)