From e1b6bc965a3f71d64b4dc3075da21c578ab5b508 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 1 May 2022 22:10:28 -0500 Subject: [PATCH] Update read.rs --- azalea-protocol/src/read.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azalea-protocol/src/read.rs b/azalea-protocol/src/read.rs index dd80bbc3..b4ba17ea 100755 --- a/azalea-protocol/src/read.rs +++ b/azalea-protocol/src/read.rs @@ -149,7 +149,7 @@ where // "decompressing packet ({}ms)", // start_time.elapsed().as_millis() // ); - buf = compression_decoder(&mut &buf[..], compression_threshold)?; + buf = compression_decoder(&mut buf.as_slice(), compression_threshold)?; } // println!("decoding packet ({}ms)", start_time.elapsed().as_millis());