diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2022-07-07 05:58:44 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-07 05:58:44 +0000 |
| commit | 31e5629ce1c8267802bbcb9d03b60a299d474e59 (patch) | |
| tree | 5968b48af9b0c30149e908b043966c41dda0a61d /azalea-buf | |
| parent | 27edd4f578e7b64fdaacefa26f691e2148707a8c (diff) | |
| parent | 37d854c799236650da3deb025d8b32693531a27f (diff) | |
| download | azalea-drasl-31e5629ce1c8267802bbcb9d03b60a299d474e59.tar.xz | |
Merge branch 'main' into 1.19.1
Diffstat (limited to 'azalea-buf')
| -rw-r--r-- | azalea-buf/src/read.rs | 2 | ||||
| -rw-r--r-- | azalea-buf/src/write.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/azalea-buf/src/read.rs b/azalea-buf/src/read.rs index 92c4d79b..684404bc 100644 --- a/azalea-buf/src/read.rs +++ b/azalea-buf/src/read.rs @@ -231,7 +231,7 @@ impl McBufVarReadable for i64 { for i in 0..8 { buf.read_exact(&mut buffer) .map_err(|_| "Invalid VarLong".to_string())?; - ans |= ((buffer[0] & 0b0111_1111) as i64) << 7 * i; + ans |= ((buffer[0] & 0b0111_1111) as i64) << (7 * i); if buffer[0] & 0b1000_0000 == 0 { break; } diff --git a/azalea-buf/src/write.rs b/azalea-buf/src/write.rs index 38ddcf49..df7f56e0 100644 --- a/azalea-buf/src/write.rs +++ b/azalea-buf/src/write.rs @@ -191,7 +191,7 @@ impl McBufVarWritable for i64 { } // this only writes a single byte, so write_all isn't necessary // the let _ = is so clippy doesn't complain - let _ = buf.write(&mut buffer)?; + let _ = buf.write(&buffer)?; } Ok(()) } |
