Fix AsRawSocket impls

This commit is contained in:
Steven Fackler 2015-12-12 16:33:58 -08:00
parent d6ce9afdf3
commit 63a45ac622
1 changed files with 2 additions and 2 deletions

View File

@ -949,7 +949,7 @@ impl<S: AsRawFd> AsRawFd for SslStream<S> {
#[cfg(windows)] #[cfg(windows)]
impl<S: AsRawSocket> AsRawSocket for NonblockingSslStream<S> { impl<S: AsRawSocket> AsRawSocket for NonblockingSslStream<S> {
fn as_raw_fd(&self) -> RawSocket { fn as_raw_socket(&self) -> RawSocket {
self.0.as_raw_socket() self.0.as_raw_socket()
} }
} }
@ -1283,7 +1283,7 @@ impl<S: AsRawFd> AsRawFd for NonblockingSslStream<S> {
#[cfg(windows)] #[cfg(windows)]
impl<S: AsRawSocket> AsRawSocket for NonblockingSslStream<S> { impl<S: AsRawSocket> AsRawSocket for NonblockingSslStream<S> {
fn as_raw_fd(&self) -> RawSocket { fn as_raw_socket(&self) -> RawSocket {
self.0.as_raw_socket() self.0.as_raw_socket()
} }
} }