pci: Automatically fix operator precedence clippy warning

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
Rob Bradford
2025-01-06 18:08:39 +00:00
committed by Bo Chen
parent a322e2d6f4
commit b57cc3d79f
4 changed files with 14 additions and 14 deletions

View File

@@ -114,9 +114,9 @@ impl PciBdf {
pub fn new(segment: u16, bus: u8, device: u8, function: u8) -> Self {
Self(
(segment as u32) << 16
| (bus as u32) << 8
| ((device & 0x1f) as u32) << 3
((segment as u32) << 16)
| ((bus as u32) << 8)
| (((device & 0x1f) as u32) << 3)
| (function & 0x7) as u32,
)
}