Skip to content

Commit

Permalink
fix clippy and test
Browse files Browse the repository at this point in the history
  • Loading branch information
loongs-zhang committed Feb 28, 2025
1 parent 3f77081 commit a9e673a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion monoio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ iouring = ["io-uring"]
# tokio-compatible(only have effect when legacy is enabled and iouring is not)
tokio-compat = ["tokio"]
# (experimental)enable poll-io to convert structs to structs that impl tokio's poll io
poll-io = ["mio"]
poll-io = ["tokio", "mio"]
# signal enables setting ctrl_c handler
signal = ["ctrlc", "sync"]
signal-termination = ["signal", "ctrlc/termination"]
Expand Down
2 changes: 1 addition & 1 deletion monoio/src/driver/iocp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ impl Poller {
const POLL_GROUP__MAX_GROUP_SIZE: usize = 32;

let mut afd_group = self.afd.lock().unwrap();
if afd_group.len() == 0 {
if afd_group.is_empty() {
self._alloc_afd_group(&mut afd_group)?;
} else {
// + 1 reference in Vec
Expand Down

0 comments on commit a9e673a

Please sign in to comment.