Fixes match pattern code that rendered an actionable branch unreachable.

Former-commit-id: 69f562bf54307ab7402dabe52e07a7a46ea4c4b1
This commit is contained in:
MidgeOnGithub 2019-05-10 23:38:19 -04:00
parent 797c8f5bb7
commit bbe971de7f

View File

@ -226,7 +226,7 @@ impl<S: PostMsg, R: PostMsg> PostBox<S, R> {
for _ in 0..100 { for _ in 0..100 {
match outgoing_chunks.pop_front() { match outgoing_chunks.pop_front() {
Some(mut chunk) => match stream.write(&chunk) { Some(mut chunk) => match stream.write(&chunk) {
Ok(n) => if n == chunk.len() {}, Ok(n) if n == chunk.len() => {}
Ok(n) => { Ok(n) => {
outgoing_chunks.push_front(chunk.split_off(n)); outgoing_chunks.push_front(chunk.split_off(n));
break; break;