mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
pci: Automatically fix operator precedence clippy warning
Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
@@ -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,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user