mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-19 18:01:01 +00:00
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:
parent
3eba4211f3
commit
1ea2671f2f
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user