mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-09 06:15:19 +00:00
3baebc1af0
warning: unneeded late initalization --> arch/src/x86_64/mod.rs:318:17 | 318 | let reg_val: u32; | ^^^^^^^^^^^^^^^^^ | = note: `#[warn(clippy::needless_late_init)]` on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init help: declare `reg_val` here | 319 | let reg_val: u32 = match reg { | ++++++++++++++++++ help: remove the assignments from the `match` arms | 321 ~ entry.eax 322 | } 323 | CpuidReg::EBX => { 324 ~ entry.ebx 325 | } 326 | CpuidReg::ECX => { ... help: add a semicolon after the `match` expression | 332 | }; | + warning: unneeded late initalization --> arch/src/x86_64/mod.rs:525:13 | 525 | let entry_compatible; | ^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init help: declare `entry_compatible` here | 526 | let entry_compatible = match entry.compatible_check { | ++++++++++++++++++++++ help: remove the assignments from the `match` arms | 530 ~ src_vm_feature_bits_only == 0 531 | } 532 | CpuidCompatibleCheck::Equal => { 533 ~ src_vm_feature == dest_vm_feature 534 | } 535 | CpuidCompatibleCheck::NumNotGreater => { Signed-off-by: Rob Bradford <robert.bradford@intel.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |