diff options
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 |
