From 68dd58114a60c82ced99a38ee0347d012ca8cfc2 Mon Sep 17 00:00:00 2001 From: Changyuan Lyu Date: Sun, 12 Jul 2026 09:08:09 -0700 Subject: [PATCH] fix: clippy warnings Signed-off-by: Changyuan Lyu --- alioth/src/device/cmos_test.rs | 2 +- alioth/src/pci/segment.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/alioth/src/device/cmos_test.rs b/alioth/src/device/cmos_test.rs index 91eea29c..54aa5926 100644 --- a/alioth/src/device/cmos_test.rs +++ b/alioth/src/device/cmos_test.rs @@ -55,7 +55,7 @@ fn test_cmos() { let value = cmos.read(0x1, 1).unwrap(); assert_eq!( value as u32, expected, - "CMOS register {reg:#02x} should match getter", + "CMOS register {reg:#04x} should match getter", ); } diff --git a/alioth/src/pci/segment.rs b/alioth/src/pci/segment.rs index a1d145d3..0309e13d 100644 --- a/alioth/src/pci/segment.rs +++ b/alioth/src/pci/segment.rs @@ -183,7 +183,7 @@ impl PciSegment { pub fn reset(&self) -> Result<()> { let devices = self.devices.read(); - for (_, dev) in devices.iter() { + for dev in devices.values() { dev.reset()?; dev.config().reset()?; }