From 556ef80d03f067ee803fc7c390b440bbb8b0961c Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 18 Sep 2014 18:52:10 -0700 Subject: Make handshake take mut self This should kill any active borrows. --- tests/all.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/all.rs') 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()); -- cgit v1.2.3