Fix error with current rust nightly
This commit is contained in:
parent
2453c0f96c
commit
7c079698fc
|
|
@ -733,7 +733,7 @@ impl<S: Read+Write> SslStream<S> {
|
||||||
match e {
|
match e {
|
||||||
LibSslError::ErrorWantRead => {
|
LibSslError::ErrorWantRead => {
|
||||||
try_ssl_stream!(self.flush());
|
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 {
|
if len == 0 {
|
||||||
return Ok(0);
|
return Ok(0);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue