diff options
| author | mat <github@matdoes.dev> | 2022-05-01 22:10:28 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-01 22:10:28 -0500 |
| commit | e1b6bc965a3f71d64b4dc3075da21c578ab5b508 (patch) | |
| tree | 5a21ef239d8e5cabdc0b5d3d511e35dc25435041 /azalea-protocol/src | |
| parent | 567c6f4f2c39976d170111b816806453636f8241 (diff) | |
| download | azalea-drasl-e1b6bc965a3f71d64b4dc3075da21c578ab5b508.tar.xz | |
Update read.rs
Diffstat (limited to 'azalea-protocol/src')
| -rwxr-xr-x | azalea-protocol/src/read.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |
