mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-12 15:42:57 +00:00
3b8d1f1411
warning: calls to `push` immediately after creation --> vmm/src/cpu.rs:630:9 | 630 | / let mut cpuid_patches = Vec::new(); 631 | | 632 | | // Patch tsc deadline timer bit 633 | | cpuid_patches.push(CpuidPatch { ... | 662 | | edx_bit: Some(MTRR_EDX_BIT), 663 | | }); | |___________^ help: consider using the `vec![]` macro: `let mut cpuid_patches = vec![..];` | = note: `#[warn(clippy::vec_init_then_push)]` on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#vec_init_then_push Signed-off-by: Rob Bradford <robert.bradford@intel.com>