From cbc0a13d9b19552976bc7177567cbaab9993127a Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Wed, 31 Aug 2022 18:50:59 +0000 Subject: fix a couple more possible panics --- azalea-protocol/src/read.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'azalea-protocol/src/read.rs') 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, } -- cgit v1.2.3