Skip to content

Commit 92f4a68

Browse files
committed
Fix warning in serial_dma_async example
1 parent 68eeba6 commit 92f4a68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/serial_dma_async.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ fn main() -> ! {
6262
// enqueue as many buffers as available into rx_buffers
6363
unsafe {
6464
// putting the same pointer in here twice would be a big mistake
65-
rx_buffers.enqueue(Pin::new(&mut BUFFER_1)).unwrap();;
66-
rx_buffers.enqueue(Pin::new(&mut BUFFER_2)).unwrap();;
65+
rx_buffers.enqueue(Pin::new(&mut BUFFER_1)).unwrap();
66+
rx_buffers.enqueue(Pin::new(&mut BUFFER_2)).unwrap();
6767
}
6868

6969
let dma_handle = &mut dma.handle;

0 commit comments

Comments
 (0)