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()?; }