mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-12 15:42:57 +00:00
build: Fix beta clippy issue (useless_vec)
warning: useless use of `vec!` --> test_infra/src/lib.rs:111:30 | 111 | let mut events = vec![epoll::Event::new(epoll::Events::empty(), 0); 1]; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[epoll::Event::new(epoll::Events::empty(), 0); 1]` | = 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: Yu Li <liyu.yukiteru@bytedance.com> (cherry picked from commit d0dbc7fb4dca1f3141a86246af99a3da5ba02760)
This commit is contained in:
parent
496d4c204b
commit
d08365a131
@ -1562,7 +1562,7 @@ mod unit_tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_valid_vm_config_vsock() {
|
fn test_valid_vm_config_vsock() {
|
||||||
vec![
|
[
|
||||||
(
|
(
|
||||||
vec![
|
vec![
|
||||||
"cloud-hypervisor",
|
"cloud-hypervisor",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user