From 67720c51f9788ad2154202a2b903e14934e69982 Mon Sep 17 00:00:00 2001 From: Alexei Pastuchov Date: Wed, 20 Sep 2023 14:46:33 +0200 Subject: [PATCH] Fix clippy error useless_vec Removed useless vec! macro Signed-off-by: Alexei Pastuchov --- src/enclave_proc_comm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/enclave_proc_comm.rs b/src/enclave_proc_comm.rs index a098614fa..7fd12e7cd 100644 --- a/src/enclave_proc_comm.rs +++ b/src/enclave_proc_comm.rs @@ -190,7 +190,7 @@ where // Get the number of expected replies. let mut num_replies_expected = comms.len() - num_errors; - let mut events = vec![EpollEvent::empty(); 1]; + let mut events = [EpollEvent::empty(); 1]; while num_replies_expected > 0 { let num_events = loop {