summaryrefslogtreecommitdiff
path: root/tests/all.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/all.rs')
-rw-r--r--tests/all.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/all.rs b/tests/all.rs
index 74c38b1..5930a8f 100644
--- a/tests/all.rs
+++ b/tests/all.rs
@@ -1,5 +1,5 @@
#![deny(warnings)]
-#![feature(core)]
+#![feature(convert)]
extern crate ssh2;
extern crate libc;
@@ -30,7 +30,7 @@ pub fn authed_session() -> (TcpStream, ssh2::Session) {
agent.connect().unwrap();
agent.list_identities().unwrap();
let identity = agent.identities().next().unwrap().unwrap();
- agent.userauth(user.as_slice(), &identity).unwrap();
+ agent.userauth(&user, &identity).unwrap();
}
assert!(sess.authenticated());
(socket, sess)