Fix error with current rust nightly

This commit is contained in:
Florian Hartwig 2015-03-29 15:19:34 +02:00
parent 2453c0f96c
commit 7c079698fc
1 changed files with 1 additions and 1 deletions

View File

@ -733,7 +733,7 @@ impl<S: Read+Write> SslStream<S> {
match e {
LibSslError::ErrorWantRead => {
try_ssl_stream!(self.flush());
let len = try_ssl_stream!(self.stream.read(self.buf.as_mut_slice()));
let len = try_ssl_stream!(self.stream.read(&mut self.buf[..]));
if len == 0 {
return Ok(0);
}