From 7a272c216bb69e6e720ba420372cdffce13413e1 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sat, 23 Apr 2022 04:28:19 +0000 Subject: Vec to [Tag] --- azalea-nbt/src/encode.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-nbt/src/encode.rs') 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) -> 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])?; -- cgit v1.2.3