From 4a4f2e2a1c04d23db99e178d5144e17889eaa8bf Mon Sep 17 00:00:00 2001 From: timvisee Date: Fri, 12 Nov 2021 15:08:48 +0100 Subject: [PATCH] Bump named-binary-tag to 0.6 --- protocol/Cargo.toml | 2 +- protocol/src/encoder.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/Cargo.toml b/protocol/Cargo.toml index ee36759..3bf0208 100644 --- a/protocol/Cargo.toml +++ b/protocol/Cargo.toml @@ -16,4 +16,4 @@ byteorder = "1" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" uuid = { version = "0.7", features = ["v4", "serde"] } -named-binary-tag = "0.2" +named-binary-tag = "0.6" diff --git a/protocol/src/encoder.rs b/protocol/src/encoder.rs index 45b7ece..8b80ee4 100644 --- a/protocol/src/encoder.rs +++ b/protocol/src/encoder.rs @@ -78,7 +78,7 @@ impl EncoderWriteExt for W { } fn write_compound_tag(&mut self, value: &CompoundTag) -> Result<(), EncodeError> { - nbt::encode::write_compound_tag(self, value.clone())?; + nbt::encode::write_compound_tag(self, &value)?; Ok(()) }