Skip to content

Commit

Permalink
Bump nix to 0.23
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsc committed Feb 3, 2025
1 parent f9adbb0 commit cd25024
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exclude = [

[dependencies]
log = "*"
nix = "0.22"
nix = "0.23"
libc = "*"
bytes = "0.3.0"
net2 = { version = "*", default-features = false }
Expand Down
4 changes: 2 additions & 2 deletions src/sys/unix/kqueue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ impl Events {
self.events[idx].kind.insert(EventSet::error());
}

if e.filter() == EventFilter::EVFILT_READ {
if e.filter() == Ok(EventFilter::EVFILT_READ) {
self.events[idx].kind.insert(EventSet::readable());
} else if e.filter() == EventFilter::EVFILT_WRITE {
} else if e.filter() == Ok(EventFilter::EVFILT_WRITE) {
self.events[idx].kind.insert(EventSet::writable());
}

Expand Down

0 comments on commit cd25024

Please sign in to comment.