Skip to content

Commit

Permalink
Remove unused parens
Browse files Browse the repository at this point in the history
  • Loading branch information
teskje committed Apr 5, 2020
1 parent 48833c6 commit 27c0b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ unsafe impl UsbPeripheral for Peripheral {
const EP_MEMORY_SIZE: usize = 1024;

fn enable() {
let rcc = unsafe { (&*RCC::ptr()) };
let rcc = unsafe { &*RCC::ptr() };

cortex_m::interrupt::free(|_| {
// Enable USB peripheral
Expand Down

0 comments on commit 27c0b4b

Please sign in to comment.