summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-03-19 09:27:33 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-03-19 09:27:33 -0700
commit86da5b3f85b3ab2bf86d53b07451b8e6eb823a49 (patch)
tree35a76ec072ed021e06f6f28bac85d20f83282c08 /src
parente9fd4baa53e9b2f18c7627716644c5e5a930a368 (diff)
downloadssh2-rs-86da5b3f85b3ab2bf86d53b07451b8e6eb823a49.zip
Use new metadata format for Cargo
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
-rw-r--r--src/session.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index ac43a47..9019bbf 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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())
}
}