vm_memory: remove unused .enumerate()

Fix clippy::unused_enumerate_index warning

BUG=b:344974550
TEST=tools/clippy

Change-Id: I19ef94ce3a4bca3deae7d9cdbe00d73ef6637257
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5609076
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
Daniel Verkamp 2024-04-08 12:37:39 -07:00 committed by crosvm LUCI
parent 50dd3cae44
commit 97848ecceb

View file

@ -55,7 +55,7 @@ impl GuestMemory {
return;
}
for (_, region) in self.regions.iter().enumerate() {
for region in self.regions.iter() {
if mem_policy.contains(MemoryPolicy::USE_HUGEPAGES) {
let ret = region.mapping.use_hugepages();