diff options
| author | mat <git@matdoes.dev> | 2023-12-01 23:09:24 -0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-12-01 23:09:24 -0600 |
| commit | 3eb9998c989cbf9305f4584af94daae72780fea7 (patch) | |
| tree | 842c34eccc15913c3b4a1a61e3803a21aa5ded4e /azalea-protocol/src/read.rs | |
| parent | 175eacfac37cbe05911fa2d19dee7e7fa38a5c2e (diff) | |
| download | azalea-drasl-3eb9998c989cbf9305f4584af94daae72780fea7.tar.xz | |
compression does not need to be async
Diffstat (limited to 'azalea-protocol/src/read.rs')
| -rwxr-xr-x | azalea-protocol/src/read.rs | 2 |
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 |
