Fix warning in mplex (#1000)

This commit is contained in:
Pierre Krieger
2019-03-16 12:18:12 +01:00
committed by GitHub
parent 1820bcb5ef
commit bbe0bd3377

View File

@ -495,7 +495,7 @@ where C: AsyncRead + AsyncWrite
// just read and wait for the next iteration. // just read and wait for the next iteration.
match next_data_poll? { match next_data_poll? {
Async::Ready(Some(data)) => substream.current_data = data, Async::Ready(Some(data)) => substream.current_data = data,
Async::Ready(None) | Async::Ready(None) => { Async::Ready(None) => {
substream.remote_open = false; substream.remote_open = false;
return Ok(Async::Ready(0)); return Ok(Async::Ready(0));
}, },