From c6f561ebe33580903290d3c0dae0b5c88410d405 Mon Sep 17 00:00:00 2001 From: Snowiiii Date: Sun, 8 Sep 2024 17:09:35 +0200 Subject: [PATCH 1/2] Fix format --- pumpkin/src/client/container.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pumpkin/src/client/container.rs b/pumpkin/src/client/container.rs index eb9a2f97..7e19b5a1 100644 --- a/pumpkin/src/client/container.rs +++ b/pumpkin/src/client/container.rs @@ -165,7 +165,10 @@ impl Player { } self.mouse_drag(drag_handler, opened_container.as_deref_mut(), drag_state) } - ClickType::DropType(_drop_type) => {dbg!("todo"); Ok(())}, + ClickType::DropType(_drop_type) => { + dbg!("todo"); + Ok(()) + } }?; if let Some(mut opened_container) = opened_container { if update_whole_container { From 6a756174c7b86ff6a4298e0a4f2f8e41b48aac49 Mon Sep 17 00:00:00 2001 From: Snowiiii Date: Sun, 8 Sep 2024 17:17:35 +0200 Subject: [PATCH 2/2] Fix: clippy --- pumpkin/src/client/client_packet.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pumpkin/src/client/client_packet.rs b/pumpkin/src/client/client_packet.rs index 43a8e865..b04c93a6 100644 --- a/pumpkin/src/client/client_packet.rs +++ b/pumpkin/src/client/client_packet.rs @@ -67,7 +67,7 @@ impl Client { name.len() <= 16 && name .chars() - .all(|c| c > 32 as u8 as char && c < 127 as u8 as char) + .all(|c| c > 32_u8 as char && c < 127_u8 as char) } pub fn handle_login_start(&mut self, server: &mut Server, login_start: SLoginStart) {