mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-21 20:15:21 +00:00
0bead9ebe1
warning: slow zero-filling initialization --> vmm/src/cpu.rs:1780:9 | 1779 | let mut mat_data: Vec<u8> = Vec::new(); | ---------- help: consider replacing this with: `vec![0; std::mem::size_of_val(&lapic)]` 1780 | mat_data.resize(std::mem::size_of_val(&lapic), 0); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#slow_vector_initialization = note: `#[warn(clippy::slow_vector_initialization)]` on by default Signed-off-by: Rob Bradford <rbradford@rivosinc.com>