Skip to content

Commit 9f7191f

Browse files
authored
Merge pull request #1541 from nicholasbishop/bishop-185-lints
Fix upcoming lints in clippy 1.85
2 parents 2898fe6 + 4293419 commit 9f7191f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

uefi/src/data_types/strs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ const unsafe fn latin1_from_utf8_at_offset(bytes: &[u8], offset: usize) -> (u8,
259259
} else if bytes[offset] & 0b1110_0000 == 0b1100_0000 {
260260
let a = (bytes[offset] & 0b0001_1111) as u16;
261261
let b = (bytes[offset + 1] & 0b0011_1111) as u16;
262-
let ch = a << 6 | b;
262+
let ch = (a << 6) | b;
263263
if ch > 0xff {
264264
panic!("input string cannot be encoded as Latin-1");
265265
}

uefi/src/proto/network/pxe.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,8 +1039,8 @@ impl DhcpV6Packet {
10391039
/// The transaction id.
10401040
#[must_use]
10411041
pub fn transaction_id(&self) -> u32 {
1042-
u32::from(self.transaction_id[0]) << 16
1043-
| u32::from(self.transaction_id[1]) << 8
1042+
(u32::from(self.transaction_id[0]) << 16)
1043+
| (u32::from(self.transaction_id[1]) << 8)
10441044
| u32::from(self.transaction_id[2])
10451045
}
10461046
}

0 commit comments

Comments
 (0)