mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +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>
(cherry picked from commit 61afd93a50)
This commit is contained in:
@@ -5841,7 +5841,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")]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user