Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
loongs-zhang committed Feb 28, 2025
1 parent 68ca5cf commit 0b3c82d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions monoio/src/driver/iocp/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,12 @@ impl Events {
}
}
}

impl<'a> IntoIterator for &'a Events {
type Item = &'a Event;
type IntoIter = std::slice::Iter<'a>;

fn into_iter(self) -> Self::IntoIter {
self.events.iter()
}
}
2 changes: 1 addition & 1 deletion monoio/src/driver/iocp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ mod waker;
pub use core::*;
use std::{
collections::VecDeque,
os::windows::prelude::{AsRawHandle, RawSocket, RawHandle},
os::windows::prelude::{AsRawHandle, RawHandle, RawSocket},
pin::Pin,
sync::{
atomic::{AtomicBool, Ordering},
Expand Down

0 comments on commit 0b3c82d

Please sign in to comment.