diff --git a/vmm/src/config.rs b/vmm/src/config.rs index 8f99d81ca..1162fc2b1 100644 --- a/vmm/src/config.rs +++ b/vmm/src/config.rs @@ -2195,9 +2195,7 @@ impl VmConfig { } else { return Err(ValidationError::MemoryZoneReused( memory_zone.to_string(), - *used_numa_node_memory_zones - .get(&memory_zone.to_string()) - .unwrap(), + *used_numa_node_memory_zones.get(memory_zone).unwrap(), numa_node.guest_numa_id, )); }