Skip to content

Commit

Permalink
Don't use deprecated APIs in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Saveau <[email protected]>
  • Loading branch information
SUPERCILEX committed Aug 15, 2024
1 parent d0b8a06 commit f5f739c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/event/epoll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ fn server(ready: Arc<(Mutex<u16>, Condvar)>) {
let mut next_data = epoll::EventData::new_u64(2);
let mut targets = HashMap::new();

let mut event_list = epoll::EventVec::with_capacity(4);
let mut event_list = Vec::with_capacity(4);
loop {
epoll::wait(&epoll, &mut event_list, -1).unwrap();
for event in &event_list {
for event in event_list.drain(..) {
let target = event.data;
if target.u64() == 1 {
let conn_sock = accept(&listen_sock).unwrap();
Expand Down

0 comments on commit f5f739c

Please sign in to comment.