aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/mc_buf/read.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-05-07 16:54:02 -0500
committermat <github@matdoes.dev>2022-05-07 16:54:02 -0500
commit9f496a89b5af63fef1a60276d6f7cf4d79c315e2 (patch)
treeea5716049ab6c23f0d39a46565ef524e39df9c9f /azalea-protocol/src/mc_buf/read.rs
parent71acb5b3363fe8a7a9ac09691de01d7342db3ad1 (diff)
downloadazalea-drasl-9f496a89b5af63fef1a60276d6f7cf4d79c315e2.tar.xz
basic code generator
Diffstat (limited to 'azalea-protocol/src/mc_buf/read.rs')
-rwxr-xr-xazalea-protocol/src/mc_buf/read.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-protocol/src/mc_buf/read.rs b/azalea-protocol/src/mc_buf/read.rs
index 72b99222..e67cfa3c 100755
--- a/azalea-protocol/src/mc_buf/read.rs
+++ b/azalea-protocol/src/mc_buf/read.rs
@@ -279,7 +279,7 @@ impl McBufVarReadable for u64 {
impl McBufReadable for UnsizedByteArray {
fn read_into(buf: &mut impl Read) -> Result<Self, String> {
- Ok(UnsizedByteArray(buf.read_bytes()?))
+ Ok(buf.read_bytes()?.into())
}
}