aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/read.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-12-01 23:09:24 -0600
committermat <git@matdoes.dev>2023-12-01 23:09:24 -0600
commit3eb9998c989cbf9305f4584af94daae72780fea7 (patch)
tree842c34eccc15913c3b4a1a61e3803a21aa5ded4e /azalea-protocol/src/read.rs
parent175eacfac37cbe05911fa2d19dee7e7fa38a5c2e (diff)
downloadazalea-drasl-3eb9998c989cbf9305f4584af94daae72780fea7.tar.xz
compression does not need to be async
Diffstat (limited to 'azalea-protocol/src/read.rs')
-rwxr-xr-xazalea-protocol/src/read.rs2
1 files changed, 2 insertions, 0 deletions
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<u32>,
+ // this has to be a &mut Option<T> instead of an Option<&mut T> because
+ // otherwise the borrow checker complains about the cipher being moved
cipher: &mut Option<Aes128CfbDec>,
) -> Result<Vec<u8>, Box<ReadPacketError>>
where