mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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>