Skip to content

Commit d71389b

Browse files
committed
Fix warning
1 parent cfc84ff commit d71389b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/usb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ unsafe impl UsbPeripheral for USB {
4646
const EP_MEMORY_SIZE: usize = 1024;
4747

4848
fn enable() {
49-
let rcc = unsafe { (&*RCC::ptr()) };
49+
let rcc = unsafe { &*RCC::ptr() };
5050

5151
cortex_m::interrupt::free(|_| {
5252
// Enable USB peripheral

0 commit comments

Comments
 (0)