diff options
| author | mat <git@matdoes.dev> | 2024-04-20 04:03:03 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-04-20 04:03:03 +0000 |
| commit | 8a1e1b7bb93373e85432ce4211b6ede4eae79409 (patch) | |
| tree | c2803f0a1a6c22c0e4ab0f123f662f817ed7aaff /azalea-buf/src/write.rs | |
| parent | 6d9d1a456951ae321089343a91d15bfa9f3087d7 (diff) | |
| download | azalea-drasl-8a1e1b7bb93373e85432ce4211b6ede4eae79409.tar.xz | |
clippy
Diffstat (limited to 'azalea-buf/src/write.rs')
| -rwxr-xr-x | azalea-buf/src/write.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-buf/src/write.rs b/azalea-buf/src/write.rs index c8d1f990..7b1fb331 100755 --- a/azalea-buf/src/write.rs +++ b/azalea-buf/src/write.rs @@ -41,7 +41,7 @@ impl McBufVarWritable for i32 { } while value != 0 { buffer[0] = (value & 0b0111_1111) as u8; - value = (value >> 7) & (i32::max_value() >> 6); + value = (value >> 7) & (i32::MAX >> 6); if value != 0 { buffer[0] |= 0b1000_0000; } @@ -137,7 +137,7 @@ impl McBufVarWritable for i64 { } while value != 0 { buffer[0] = (value & 0b0111_1111) as u8; - value = (value >> 7) & (i64::max_value() >> 6); + value = (value >> 7) & (i64::MAX >> 6); if value != 0 { buffer[0] |= 0b1000_0000; } |
