From a64c6505049082175224802c5be51ac8f0cf4677 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 30 May 2025 12:59:08 -1345 Subject: make fixedbitset require generic const exprs again :3 --- azalea-protocol/src/packets/game/s_set_command_block.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-protocol/src/packets/game/s_set_command_block.rs') diff --git a/azalea-protocol/src/packets/game/s_set_command_block.rs b/azalea-protocol/src/packets/game/s_set_command_block.rs index ea1af6bb..dacb79de 100644 --- a/azalea-protocol/src/packets/game/s_set_command_block.rs +++ b/azalea-protocol/src/packets/game/s_set_command_block.rs @@ -30,7 +30,7 @@ impl AzaleaRead for ServerboundSetCommandBlock { let command = String::azalea_read(buf)?; let mode = Mode::azalea_read(buf)?; - let set = FixedBitSet::<{ 3_usize.div_ceil(8) }>::azalea_read(buf)?; + let set = FixedBitSet::<3>::azalea_read(buf)?; Ok(Self { pos, command, @@ -48,7 +48,7 @@ impl AzaleaWrite for ServerboundSetCommandBlock { self.command.azalea_write(buf)?; self.mode.azalea_write(buf)?; - let mut set = FixedBitSet::<{ 3_usize.div_ceil(8) }>::new(); + let mut set = FixedBitSet::<3>::new(); if self.track_output { set.set(0); } -- cgit v1.2.3