mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-10 22:57:43 +00:00
21b88c3ea0
Address updated clippy error: error: `if` chain can be rewritten with `match` --> vmm/src/cpu.rs:668:9 | 668 | / if desired_vcpus > self.present_vcpus() { 669 | | self.activate_vcpus(desired_vcpus, None)?; 670 | | } else if desired_vcpus < self.present_vcpus() { 671 | | self.mark_vcpus_for_removal(desired_vcpus)?; 672 | | } | |_________^ | = note: `-D clippy::comparison-chain` implied by `-D warnings` = help: Consider rewriting the `if` chain to use `cmp` and `match`. = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_chain Signed-off-by: Rob Bradford <robert.bradford@intel.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |