From aa0256da102103eedc9897458dd81516962a80a3 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 7 May 2025 11:27:58 +0800 Subject: upgrade rust version and fix clippy warnings --- azalea/src/auto_tool.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'azalea/src/auto_tool.rs') diff --git a/azalea/src/auto_tool.rs b/azalea/src/auto_tool.rs index 81fe3131..ace032d9 100644 --- a/azalea/src/auto_tool.rs +++ b/azalea/src/auto_tool.rs @@ -95,11 +95,11 @@ pub fn accurate_best_tool_in_hotbar_for_block( } } } - if let Some(this_item_speed) = this_item_speed { - if this_item_speed > best_speed { - best_slot = Some(i); - best_speed = this_item_speed; - } + if let Some(this_item_speed) = this_item_speed + && this_item_speed > best_speed + { + best_slot = Some(i); + best_speed = this_item_speed; } } -- cgit v1.2.3