diff options
| author | mat <github@matdoes.dev> | 2022-05-07 16:54:02 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-07 16:54:02 -0500 |
| commit | 9f496a89b5af63fef1a60276d6f7cf4d79c315e2 (patch) | |
| tree | ea5716049ab6c23f0d39a46565ef524e39df9c9f /azalea-protocol/src/mc_buf/read.rs | |
| parent | 71acb5b3363fe8a7a9ac09691de01d7342db3ad1 (diff) | |
| download | azalea-drasl-9f496a89b5af63fef1a60276d6f7cf4d79c315e2.tar.xz | |
basic code generator
Diffstat (limited to 'azalea-protocol/src/mc_buf/read.rs')
| -rwxr-xr-x | azalea-protocol/src/mc_buf/read.rs | 2 |
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()) } } |
