mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-03 14:19:07 +02:00
Fix clippy warnings
This commit is contained in:
parent
daa188eb1d
commit
3cdafa7be9
3 changed files with 8 additions and 6 deletions
|
@ -51,11 +51,11 @@ where
|
|||
|
||||
let buf = &buf[..len];
|
||||
let (format, buf) = buf.split_at(1);
|
||||
if format.get(0) != Some(&2) {
|
||||
if !matches!(format, [2]) {
|
||||
bail!("Unknown chunk format");
|
||||
}
|
||||
|
||||
let mut decoder = ZlibDecoder::new(&buf[..]);
|
||||
let mut decoder = ZlibDecoder::new(buf);
|
||||
let mut decode_buffer = vec![];
|
||||
decoder
|
||||
.read_to_end(&mut decode_buffer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue