aboutsummaryrefslogtreecommitdiff
path: root/azalea-nbt/src/encode.rs
diff options
context:
space:
mode:
authorUbuntu <github@matdoes.dev>2022-04-23 04:28:19 +0000
committerUbuntu <github@matdoes.dev>2022-04-23 04:28:19 +0000
commit7a272c216bb69e6e720ba420372cdffce13413e1 (patch)
tree6da1aa85536be7707b5585883f5493d621a681c5 /azalea-nbt/src/encode.rs
parent46454793e041dcecb252084b6616bd8f7011b2e1 (diff)
downloadazalea-drasl-7a272c216bb69e6e720ba420372cdffce13413e1.tar.xz
Vec<Tag> to [Tag]
Diffstat (limited to 'azalea-nbt/src/encode.rs')
-rwxr-xr-xazalea-nbt/src/encode.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-nbt/src/encode.rs b/azalea-nbt/src/encode.rs
index 08d41e89..c765d4a7 100755
--- a/azalea-nbt/src/encode.rs
+++ b/azalea-nbt/src/encode.rs
@@ -102,7 +102,7 @@ fn write_compound(
}
#[inline]
-fn write_list(writer: &mut dyn Write, value: &Vec<Tag>) -> Result<(), Error> {
+fn write_list(writer: &mut dyn Write, value: &[Tag]) -> Result<(), Error> {
// we just get the type from the first item, or default the type to END
if value.is_empty() {
writer.write_all(&[0; 5])?;