mirror of
https://github.com/wez/wezterm.git
synced 2024-11-23 15:04:36 +03:00
bump for filedescriptor changes
This commit is contained in:
parent
40ff31f984
commit
0b9c953446
@ -19,7 +19,7 @@ crossbeam-channel = "0.3"
|
||||
dirs = "1.0"
|
||||
downcast-rs = "1.0"
|
||||
euclid = "0.19"
|
||||
filedescriptor = "0.3"
|
||||
filedescriptor = "0.4"
|
||||
pretty_env_logger = "0.3"
|
||||
failure = "0.1"
|
||||
failure_derive = "0.1"
|
||||
|
@ -72,7 +72,7 @@ impl<T> PollableReceiver<T> {
|
||||
|
||||
impl<T> AsPollFd for PollableReceiver<T> {
|
||||
fn as_poll_fd(&self) -> pollfd {
|
||||
self.read.borrow().as_raw_file_descriptor().as_poll_fd()
|
||||
self.read.borrow().as_socket_descriptor().as_poll_fd()
|
||||
}
|
||||
}
|
||||
|
||||
@ -100,7 +100,7 @@ pub trait AsPollFd {
|
||||
fn as_poll_fd(&self) -> pollfd;
|
||||
}
|
||||
|
||||
impl AsPollFd for RawFileDescriptor {
|
||||
impl AsPollFd for SocketDescriptor {
|
||||
fn as_poll_fd(&self) -> pollfd {
|
||||
pollfd {
|
||||
fd: *self,
|
||||
@ -112,13 +112,13 @@ impl AsPollFd for RawFileDescriptor {
|
||||
|
||||
impl AsPollFd for native_tls::TlsStream<TcpStream> {
|
||||
fn as_poll_fd(&self) -> pollfd {
|
||||
self.get_ref().as_raw_file_descriptor().as_poll_fd()
|
||||
self.get_ref().as_socket_descriptor().as_poll_fd()
|
||||
}
|
||||
}
|
||||
|
||||
impl AsPollFd for UnixStream {
|
||||
fn as_poll_fd(&self) -> pollfd {
|
||||
self.as_raw_file_descriptor().as_poll_fd()
|
||||
self.as_socket_descriptor().as_poll_fd()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user