summaryrefslogtreecommitdiff
path: root/src/channel.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-01-23 08:31:49 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-01-23 08:31:49 -0800
commitf125dbfd31473fc5958955ac7546b06fafd04530 (patch)
tree5100979de152fe7923df7be0aa62da32180e3af1 /src/channel.rs
parente2f2c5046f6079d80ed21ae21afc55249dff478a (diff)
downloadssh2-rs-f125dbfd31473fc5958955ac7546b06fafd04530.zip
Update to rust master
Diffstat (limited to 'src/channel.rs')
-rw-r--r--src/channel.rs2
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,
};