diff options
| author | Ubuntu <github@matdoes.dev> | 2022-08-31 18:50:59 +0000 |
|---|---|---|
| committer | Ubuntu <github@matdoes.dev> | 2022-08-31 18:50:59 +0000 |
| commit | cbc0a13d9b19552976bc7177567cbaab9993127a (patch) | |
| tree | fc5715569e679002b8ecc5c68a66364b4b7f4049 /azalea-protocol/src/read.rs | |
| parent | efb1f3f2d59af4dc44304d1f23678ac667c5cae2 (diff) | |
| download | azalea-drasl-cbc0a13d9b19552976bc7177567cbaab9993127a.tar.xz | |
fix a couple more possible panics
Diffstat (limited to 'azalea-protocol/src/read.rs')
| -rwxr-xr-x | azalea-protocol/src/read.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/azalea-protocol/src/read.rs b/azalea-protocol/src/read.rs index 85340f5a..e2f6f0aa 100755 --- a/azalea-protocol/src/read.rs +++ b/azalea-protocol/src/read.rs @@ -172,10 +172,7 @@ where azalea_crypto::decrypt_packet(cipher, buf.filled_mut()); } } - match r { - Ok(()) => Poll::Ready(Ok(())), - Err(e) => panic!("{:?}", e), - } + Poll::Ready(r) } Poll::Pending => Poll::Pending, } |
