Skip to content

Commit

Permalink
refactor: Satisfy recent nightly clippy lint additions
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeaurivage authored and sajattack committed Jan 4, 2025
1 parent e281477 commit 63ea8cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hal/src/peripherals/eic/d11/pin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ where
self.chan
.eic
.evctrl()
.modify(|r, w| unsafe { w.bits(r.bits() | 1 << P::ChId::ID) });
.modify(|r, w| unsafe { w.bits(r.bits() | (1 << P::ChId::ID)) });
}

pub fn enable_interrupt(&mut self) {
Expand All @@ -69,7 +69,7 @@ where
self.chan
.eic
.wakeup()
.modify(|r, w| unsafe { w.bits(r.bits() | 1 << P::ChId::ID) })
.modify(|r, w| unsafe { w.bits(r.bits() | (1 << P::ChId::ID)) })
}

pub fn disable_interrupt(&mut self) {
Expand Down
2 changes: 1 addition & 1 deletion hal/src/sercom/i2c/reg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,5 +543,5 @@ fn encode_write_address(addr_7_bits: u8) -> u16 {
}

fn encode_read_address(addr_7_bits: u8) -> u16 {
(addr_7_bits as u16) << 1 | 1
((addr_7_bits as u16) << 1) | 1
}

0 comments on commit 63ea8cb

Please sign in to comment.