mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-22 04:25:21 +00:00
ade8d71264
error: unneeded late initalization Error: --> arch/src/aarch64/gic/gicv3_its.rs:127:9 | 127 | let attr: u64; | ^^^^^^^^^^^^^^ | = note: `-D clippy::needless-late-init` implied by `-D warnings` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init help: declare `attr` here | 128 | let attr: u64 = if save { | +++++++++++++++ help: remove the assignments from the branches | 129 ~ u64::from(kvm_bindings::KVM_DEV_ARM_ITS_SAVE_TABLES) 130 | } else { 131 ~ u64::from(kvm_bindings::KVM_DEV_ARM_ITS_RESTORE_TABLES) | help: add a semicolon after the `if` expression | 132 | }; | + Signed-off-by: Rob Bradford <robert.bradford@intel.com>