diff options
author | Alex Crichton <alex@alexcrichton.com> | 2015-03-27 10:35:29 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-27 10:35:29 -0700 |
commit | e8f19a4ab194d9c242a008db08c190ddbdc74926 (patch) | |
tree | 972b324ddd6e93b942c867f69f87fa6b7c7b7599 /src/error.rs | |
parent | 1fc982577a5581fb38be9bbc73432bd4d4b20f5c (diff) | |
download | ssh2-rs-e8f19a4ab194d9c242a008db08c190ddbdc74926.zip |
Fix lint errors
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 2 |
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())) } } |