From 4920defe3ebdfd36ac49b63e27633a766a1937de Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 9 Sep 2022 17:56:16 -0700 Subject: [PATCH] Fix clippy issue --- src/protocol/slot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/slot.rs b/src/protocol/slot.rs index 0c515c5..beab216 100644 --- a/src/protocol/slot.rs +++ b/src/protocol/slot.rs @@ -46,7 +46,7 @@ impl Decode for Slot { Ok(Slot::Present { item_id: VarInt::decode(r)?, item_count: u8::decode(r)?, - nbt: if r.get(0) == Some(&0) { + nbt: if r.first() == Some(&0) { r.read_u8()?; None } else {