Merge pull request #191 from fhartwig/rustup

Fix error with current rust nightly
This commit is contained in:
Steven Fackler 2015-03-29 12:30:28 -04:00
commit c315e05368
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);
}