mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Instead of making an owned `zones`, using an iterator is cheaper since `Vec::remove` may have the performance O(n) [1]. [1]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.remove Signed-off-by: Changyuan Lyu <changyuanl@google.com>