From 3eb9998c989cbf9305f4584af94daae72780fea7 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 1 Dec 2023 23:09:24 -0600 Subject: compression does not need to be async --- azalea-protocol/src/read.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'azalea-protocol/src/read.rs') diff --git a/azalea-protocol/src/read.rs b/azalea-protocol/src/read.rs index d1985b31..65e497c6 100755 --- a/azalea-protocol/src/read.rs +++ b/azalea-protocol/src/read.rs @@ -244,6 +244,8 @@ pub async fn read_raw_packet<'a, R>( stream: &'a mut R, buffer: &mut BytesMut, compression_threshold: Option, + // this has to be a &mut Option instead of an Option<&mut T> because + // otherwise the borrow checker complains about the cipher being moved cipher: &mut Option, ) -> Result, Box> where -- cgit v1.2.3