Skip to content

Commit 144bca6

Browse files
authored
clippy: New rust version, new clippy lint (#44)
1 parent d26c531 commit 144bca6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gpio/erased.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl<MODE> PinExt for ErasedPin<MODE> {
5151
impl<MODE> ErasedPin<MODE> {
5252
pub(crate) fn new(port: u8, pin: u8) -> Self {
5353
Self {
54-
pin_port: port << 4 | pin,
54+
pin_port: (port << 4) | pin,
5555
_mode: PhantomData,
5656
}
5757
}

0 commit comments

Comments
 (0)