misc: Address clippy beta issues

Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
Bo Chen
2023-06-30 13:51:41 -07:00
committed by Bo Chen
parent 064c1e2c8b
commit 3a63143f33
8 changed files with 9 additions and 18 deletions

View File

@@ -1591,7 +1591,7 @@ impl MemoryManager {
.ok_or(Error::MemoryRangeAllocation)?;
// Update the slot so that it can be queried via the I/O port
let mut slot = &mut self.hotplug_slots[self.next_hotplug_slot];
let slot = &mut self.hotplug_slots[self.next_hotplug_slot];
slot.active = true;
slot.inserting = true;
slot.base = region.start_addr().0;