diff options
| author | mat <github@matdoes.dev> | 2023-02-05 14:52:25 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2023-02-05 14:52:25 -0600 |
| commit | cbcf1d5e54caefb50ec6340aaf1e8a94312a38c8 (patch) | |
| tree | 6fdc2c95834fd6f741da635304f17e45293e521d | |
| parent | 0d3a091c232d409939db82dfb30f700e57583c85 (diff) | |
| download | azalea-drasl-cbcf1d5e54caefb50ec6340aaf1e8a94312a38c8.tar.xz | |
shut up clippy
| -rw-r--r-- | azalea-client/src/packet_handling.rs | 1 | ||||
| -rwxr-xr-x | azalea-protocol/src/packets/game/serverbound_use_item_on_packet.rs | 15 |
2 files changed, 13 insertions, 3 deletions
diff --git a/azalea-client/src/packet_handling.rs b/azalea-client/src/packet_handling.rs index 2d591531..42e24462 100644 --- a/azalea-client/src/packet_handling.rs +++ b/azalea-client/src/packet_handling.rs @@ -582,6 +582,7 @@ fn handle_packets(ecs: &mut Ecs) { ClientboundGamePacket::AddPlayer(p) => { debug!("Got add player packet {:?}", p); + #[allow(clippy::type_complexity)] let mut system_state: SystemState<( Commands, Query<(&mut LocalPlayer, Option<&WorldName>)>, diff --git a/azalea-protocol/src/packets/game/serverbound_use_item_on_packet.rs b/azalea-protocol/src/packets/game/serverbound_use_item_on_packet.rs index 17b537b6..c7a32a8f 100755 --- a/azalea-protocol/src/packets/game/serverbound_use_item_on_packet.rs +++ b/azalea-protocol/src/packets/game/serverbound_use_item_on_packet.rs @@ -24,9 +24,18 @@ impl McBufWritable for BlockHitResult { fn write_into(&self, buf: &mut impl Write) -> Result<(), std::io::Error> { self.block_pos.write_into(buf)?; self.direction.write_into(buf)?; - f32::write_into(&((self.location.x - f64::from(self.block_pos.x)) as f32), buf)?; - f32::write_into(&((self.location.y - f64::from(self.block_pos.y)) as f32), buf)?; - f32::write_into(&((self.location.z - f64::from(self.block_pos.z)) as f32), buf)?; + f32::write_into( + &((self.location.x - f64::from(self.block_pos.x)) as f32), + buf, + )?; + f32::write_into( + &((self.location.y - f64::from(self.block_pos.y)) as f32), + buf, + )?; + f32::write_into( + &((self.location.z - f64::from(self.block_pos.z)) as f32), + buf, + )?; self.inside.write_into(buf)?; Ok(()) } |
