Skip to content

Commit

Permalink
Fix clippy error useless_vec
Browse files Browse the repository at this point in the history
Removed useless vec! macro

Signed-off-by: Alexei Pastuchov <[email protected]>
  • Loading branch information
p-alik committed Sep 20, 2023
1 parent 3beecab commit 1977d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/enclave_proc_comm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1977d4d

Please sign in to comment.