summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-03-27 10:35:29 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-03-27 10:35:29 -0700
commite8f19a4ab194d9c242a008db08c190ddbdc74926 (patch)
tree972b324ddd6e93b942c867f69f87fa6b7c7b7599 /src/error.rs
parent1fc982577a5581fb38be9bbc73432bd4d4b20f5c (diff)
downloadssh2-rs-e8f19a4ab194d9c242a008db08c190ddbdc74926.zip
Fix lint errors
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs
index fe37c48..d6d2a7b 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -26,7 +26,7 @@ impl Error {
let rc = raw::libssh2_session_last_error(sess.raw(), &mut msg,
0 as *mut _, 0);
if rc == 0 { return None }
- let s = ::opt_bytes(&STATIC, msg as *const _).unwrap();
+ let s = ::opt_bytes(&STATIC, msg).unwrap();
Some(Error::new(rc, str::from_utf8(s).unwrap()))
}
}