From 61afd93a5078a617a3b5e940d3729cbcb9b48ecf Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 6 Feb 2024 21:05:06 +0000 Subject: [PATCH] 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 --- tests/integration.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration.rs b/tests/integration.rs index ae3e61db2..a42468050 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -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")] {