Fix clippy issue

This commit is contained in:
Ryan 2022-09-09 17:56:16 -07:00
parent a80052097a
commit 4920defe3e

View file

@ -46,7 +46,7 @@ impl Decode for Slot {
Ok(Slot::Present { Ok(Slot::Present {
item_id: VarInt::decode(r)?, item_id: VarInt::decode(r)?,
item_count: u8::decode(r)?, item_count: u8::decode(r)?,
nbt: if r.get(0) == Some(&0) { nbt: if r.first() == Some(&0) {
r.read_u8()?; r.read_u8()?;
None None
} else { } else {