diff options
author | Alex Crichton <alex@alexcrichton.com> | 2015-01-23 08:31:49 -0800 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2015-01-23 08:31:49 -0800 |
commit | f125dbfd31473fc5958955ac7546b06fafd04530 (patch) | |
tree | 5100979de152fe7923df7be0aa62da32180e3af1 /src/channel.rs | |
parent | e2f2c5046f6079d80ed21ae21afc55249dff478a (diff) | |
download | ssh2-rs-f125dbfd31473fc5958955ac7546b06fafd04530.zip |
Update to rust master
Diffstat (limited to 'src/channel.rs')
-rw-r--r-- | src/channel.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channel.rs b/src/channel.rs index 149c1fb..7dabcb8 100644 --- a/src/channel.rs +++ b/src/channel.rs @@ -220,7 +220,7 @@ impl<'sess> Channel<'sess> { let data = match self.read_limit { Some(amt) => { let len = data.len(); - data.slice_to_mut(cmp::min(amt as usize, len)) + &mut data[..cmp::min(amt as usize, len)] } None => data, }; |