Update read.rs

This commit is contained in:
mat 2022-05-01 22:10:28 -05:00
parent 567c6f4f2c
commit e1b6bc965a

View file

@ -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());