Skip to content

Commit beb5334

Browse files
No need to drop the dma object.
clippy notes that it has no Drop impl, and it doesn't borrow anything, so dropping it has no effect.
1 parent 895a4d8 commit beb5334

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/vga/mod.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,12 +1016,6 @@ pub fn init(
10161016
dma.multi_chan_trigger
10171017
.write(|w| unsafe { w.bits((1 << PIXEL_DMA_CHAN) | (1 << TIMING_DMA_CHAN)) });
10181018

1019-
debug!("DMA enabled");
1020-
1021-
// We now drop the dma object because the VGA IRQ will later unsafely
1022-
// conjure it out of thin air.
1023-
drop(dma);
1024-
10251019
debug!("DMA set-up complete");
10261020

10271021
timing_sm.start();

0 commit comments

Comments
 (0)