Skip to content

Commit 450a09b

Browse files
committed
refactor: Satisfy recent nightly clippy lint additions
1 parent 8243da6 commit 450a09b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hal/src/peripherals/eic/d11/pin.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ where
5555
self.chan
5656
.eic
5757
.evctrl()
58-
.modify(|r, w| unsafe { w.bits(r.bits() | 1 << P::ChId::ID) });
58+
.modify(|r, w| unsafe { w.bits(r.bits() | (1 << P::ChId::ID)) });
5959
}
6060

6161
pub fn enable_interrupt(&mut self) {
@@ -69,7 +69,7 @@ where
6969
self.chan
7070
.eic
7171
.wakeup()
72-
.modify(|r, w| unsafe { w.bits(r.bits() | 1 << P::ChId::ID) })
72+
.modify(|r, w| unsafe { w.bits(r.bits() | (1 << P::ChId::ID)) })
7373
}
7474

7575
pub fn disable_interrupt(&mut self) {

hal/src/sercom/i2c/reg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,5 +543,5 @@ fn encode_write_address(addr_7_bits: u8) -> u16 {
543543
}
544544

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

0 commit comments

Comments
 (0)