mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-28 01:16:50 +00:00
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:
parent
50dd3cae44
commit
97848ecceb
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue