Update deps (#5417)

* Upgrade nix

* Update deps

* Upgrade pyo3, winreg

* Fix errors from upgrading
This commit is contained in:
Noa authored and GitHub committed 2024-09-27 13:11:00 +09:00
1 parent 7623668256
commit 37dc28a69d
17 files changed
+592 -722

No files matched your search

+4 -3
View File
@@ -1842,15 +1842,16 @@ mod _socket {
#[cfg(unix)]
{
use nix::poll::*;
use std::os::fd::AsFd;
let events = match kind {
SelectKind::Read => PollFlags::POLLIN,
SelectKind::Write => PollFlags::POLLOUT,
SelectKind::Connect => PollFlags::POLLOUT | PollFlags::POLLERR,
};
let mut pollfd = [PollFd::new(sock, events)];
let mut pollfd = [PollFd::new(sock.as_fd(), events)];
let timeout = match interval {
Some(d) => d.as_millis() as _,
None => -1,
Some(d) => d.try_into().unwrap_or(PollTimeout::MAX),
None => PollTimeout::NONE,
};
let ret = poll(&mut pollfd, timeout)?;
Ok(ret == 0)