mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-31 17:05:18 +00:00
7f18d0a281
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>