aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/mc_buf/read.rs
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2022-05-07 23:38:16 +0000
committerGitHub <noreply@github.com>2022-05-07 23:38:16 +0000
commitd9e388d8b0d8b3bdcf7a2e21b0cd2daa78d295e7 (patch)
tree8165f83b45e06c17d9114f1672ac73f202ba4b68 /azalea-protocol/src/mc_buf/read.rs
parent71acb5b3363fe8a7a9ac09691de01d7342db3ad1 (diff)
parentf198bdf777d4c68b11e6aeabeb96b5035e1ec5e1 (diff)
downloadazalea-drasl-d9e388d8b0d8b3bdcf7a2e21b0cd2daa78d295e7.tar.xz
Merge pull request #5 from mat-1/code-gen
Code gen
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())
}
}