diff options
author | Alex Crichton <alex@alexcrichton.com> | 2015-03-19 09:27:33 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-19 09:27:33 -0700 |
commit | 86da5b3f85b3ab2bf86d53b07451b8e6eb823a49 (patch) | |
tree | 35a76ec072ed021e06f6f28bac85d20f83282c08 /src/session.rs | |
parent | e9fd4baa53e9b2f18c7627716644c5e5a930a368 (diff) | |
download | ssh2-rs-86da5b3f85b3ab2bf86d53b07451b8e6eb823a49.zip |
Use new metadata format for Cargo
Diffstat (limited to 'src/session.rs')
-rw-r--r-- | src/session.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/session.rs b/src/session.rs index 8048b74..30ac664 100644 --- a/src/session.rs +++ b/src/session.rs @@ -143,14 +143,14 @@ impl Session { #[cfg(windows)] unsafe fn handshake(raw: *mut raw::LIBSSH2_SESSION, stream: &TcpStream) -> libc::c_int { - use std::os::windows::AsRawSocket; + use std::os::windows::prelude::*; raw::libssh2_session_handshake(raw, stream.as_raw_socket()) } #[cfg(unix)] unsafe fn handshake(raw: *mut raw::LIBSSH2_SESSION, stream: &TcpStream) -> libc::c_int { - use std::os::unix::AsRawFd; + use std::os::unix::prelude::*; raw::libssh2_session_handshake(raw, stream.as_raw_fd()) } } |