mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixes match pattern code that rendered an actionable branch unreachable.
Former-commit-id: 69f562bf54307ab7402dabe52e07a7a46ea4c4b1
This commit is contained in:
parent
797c8f5bb7
commit
bbe971de7f
@ -226,7 +226,7 @@ impl<S: PostMsg, R: PostMsg> PostBox<S, R> {
|
||||
for _ in 0..100 {
|
||||
match outgoing_chunks.pop_front() {
|
||||
Some(mut chunk) => match stream.write(&chunk) {
|
||||
Ok(n) => if n == chunk.len() {},
|
||||
Ok(n) if n == chunk.len() => {}
|
||||
Ok(n) => {
|
||||
outgoing_chunks.push_front(chunk.split_off(n));
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user