vmm: Fix clippy: for_kv_map

Fix use of a paired map iterator when only the values are cared about.

Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
Rob Bradford
2026-05-27 12:18:00 +01:00
committed by Bo Chen
parent c78497c314
commit 2a20f570b2
3 changed files with 9 additions and 9 deletions

View File

@@ -114,7 +114,7 @@ impl<'a> BftIter<'a> {
let mut nodes = Vec::with_capacity(hash_map.len());
let mut i = 0;
for (_, node) in hash_map.iter() {
for node in hash_map.values() {
if node.parent.is_none() {
nodes.push(node);
}