summaryrefslogtreecommitdiff
path: root/tests
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 /tests
parente9fd4baa53e9b2f18c7627716644c5e5a930a368 (diff)
downloadssh2-rs-86da5b3f85b3ab2bf86d53b07451b8e6eb823a49.zip
Use new metadata format for Cargo
Diffstat (limited to 'tests')
-rw-r--r--tests/all.rs2
-rw-r--r--tests/channel.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/all.rs b/tests/all.rs
index 1cde6e2..74c38b1 100644
--- a/tests/all.rs
+++ b/tests/all.rs
@@ -1,5 +1,5 @@
#![deny(warnings)]
-#![feature(io, core, net)]
+#![feature(core)]
extern crate ssh2;
extern crate libc;
diff --git a/tests/channel.rs b/tests/channel.rs
index 38a39aa..128e425 100644
--- a/tests/channel.rs
+++ b/tests/channel.rs
@@ -69,7 +69,7 @@ fn setenv() {
#[test]
fn direct() {
let a = TcpListener::bind("127.0.0.1:0").unwrap();
- let addr = a.socket_addr().unwrap();
+ let addr = a.local_addr().unwrap();
let t = thread::scoped(move|| {
let mut s = a.accept().unwrap().0;
let b = &mut [0, 0, 0];