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 | |
parent | e9fd4baa53e9b2f18c7627716644c5e5a930a368 (diff) | |
download | ssh2-rs-86da5b3f85b3ab2bf86d53b07451b8e6eb823a49.zip |
Use new metadata format for Cargo
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 2 | ||||
-rw-r--r-- | src/session.rs | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -124,7 +124,7 @@ //! ``` #![doc(html_root_url = "http://alexcrichton.com/ssh2-rs")] -#![feature(unsafe_destructor, std_misc, collections, io, core, net)] +#![feature(unsafe_destructor, std_misc, collections, io, core, io_ext)] #![deny(missing_docs, unused_results)] #![cfg_attr(test, deny(warnings))] 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()) } } |