diff options
author | Alex Crichton <alex@alexcrichton.com> | 2014-11-24 22:43:48 -0800 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2014-11-24 22:43:48 -0800 |
commit | 4971597defab4d423734b06087c41e4439bb32c5 (patch) | |
tree | 8bfe80e4fa454809eae207d09abd8fa7a8bc77bd /src/channel.rs | |
parent | 922531da4c22abe7a216672314315d41769d7fb1 (diff) | |
download | ssh2-rs-4971597defab4d423734b06087c41e4439bb32c5.zip |
Update to rust master
Diffstat (limited to 'src/channel.rs')
-rw-r--r-- | src/channel.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/channel.rs b/src/channel.rs index 45249d0..6f951f2 100644 --- a/src/channel.rs +++ b/src/channel.rs @@ -1,7 +1,6 @@ use std::cmp; use std::io; use std::kinds::marker; -use std::vec; use libc::{c_uint, c_int, size_t, c_char, c_void, c_uchar}; use {raw, Session, Error}; @@ -249,7 +248,7 @@ impl<'a> Channel<'a> { unsafe fn convert(chan: &Channel, ptr: *mut c_char, len: size_t) -> Option<String> { if ptr.is_null() { return None } - let ret = vec::raw::from_buf(ptr as *const u8, len as uint); + let ret = Vec::from_raw_buf(ptr as *const u8, len as uint); raw::libssh2_free(chan.sess.raw(), ptr as *mut c_void); String::from_utf8(ret).ok() } |