dragonball: Fix lint with rust 1.75.0

The ci failed with:
```
error: use of `or_insert_with` to construct default value
   --> src/address_space_manager.rs:650:14
    |
650 |             .or_insert_with(NumaNode::new);
    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()`
    |
```

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
stevenhorsman 2024-06-13 16:04:09 +01:00
parent 3eba4211f3
commit 1ea2671f2f

View File

@ -644,10 +644,7 @@ impl AddressSpaceMgr {
guest_numa_node_id: u32,
vcpu_ids: &[u32],
) {
let node = self
.numa_nodes
.entry(guest_numa_node_id)
.or_insert_with(NumaNode::new);
let node = self.numa_nodes.entry(guest_numa_node_id).or_default();
node.add_info(&NumaNodeInfo {
base: region.start_addr(),
size: region.len(),