From b71564f284300f1694c49f17fb370099ddf24e70 Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Tue, 7 Mar 2023 15:40:16 -0800 Subject: [PATCH] vmm: Remove unnecessary parentheses (beta 1.69 clippy check) Signed-off-by: Bo Chen --- vmm/src/pci_segment.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmm/src/pci_segment.rs b/vmm/src/pci_segment.rs index 576e320b8..e0417469d 100644 --- a/vmm/src/pci_segment.rs +++ b/vmm/src/pci_segment.rs @@ -159,7 +159,7 @@ impl PciSegment { // There are 32 devices on the PCI bus, let's assign them an IRQ. for i in 0..32 { - pci_irq_slots[i] = irqs[(i % num_irqs)]; + pci_irq_slots[i] = irqs[i % num_irqs]; } Ok(())