summaryrefslogtreecommitdiff
path: root/tests/all.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-09-18 18:52:10 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-09-18 18:52:45 -0700
commit556ef80d03f067ee803fc7c390b440bbb8b0961c (patch)
tree325c30bf2e847f4553e141ebe54386a32ce6207e /tests/all.rs
parent074152ea964bedc759a10b36db4a04668d03766c (diff)
downloadssh2-rs-556ef80d03f067ee803fc7c390b440bbb8b0961c.zip
Make handshake take mut self
This should kill any active borrows.
Diffstat (limited to 'tests/all.rs')
-rw-r--r--tests/all.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/all.rs b/tests/all.rs
index f8d427a..fb3bc21 100644
--- a/tests/all.rs
+++ b/tests/all.rs
@@ -23,7 +23,7 @@ pub fn socket() -> TcpStream {
pub fn authed_session() -> (TcpStream, ssh2::Session) {
let user = os::getenv("USER").unwrap();
- let sess = ssh2::Session::new().unwrap();
+ let mut sess = ssh2::Session::new().unwrap();
let socket = socket();
sess.handshake(socket.fd()).unwrap();
assert!(!sess.authenticated());