mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 05:35:20 +00:00
tests: Remove unnecessary use of vec![] macro
Beta clippy fix warning: useless use of `vec!` --> tests/integration.rs:5845:23 | 5845 | let kernels = vec![direct_kernel_boot_path()]; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[direct_kernel_boot_path()]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec = note: `#[warn(clippy::useless_vec)]` on by default Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
parent
9dfc39d336
commit
61afd93a50
@ -5842,7 +5842,7 @@ mod common_parallel {
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
let mut kernels = vec![direct_kernel_boot_path()];
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
let kernels = vec![direct_kernel_boot_path()];
|
||||
let kernels = [direct_kernel_boot_path()];
|
||||
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user