diff options
| author | mat <git@matdoes.dev> | 2025-05-07 11:27:58 +0800 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-05-07 11:27:58 +0800 |
| commit | aa0256da102103eedc9897458dd81516962a80a3 (patch) | |
| tree | 9d01f879a7c75750acd8de0c308247c12bbeea9d /azalea/src/auto_tool.rs | |
| parent | e9452032bfc95cb7ad4a8798b13648e164536cf1 (diff) | |
| download | azalea-drasl-aa0256da102103eedc9897458dd81516962a80a3.tar.xz | |
upgrade rust version and fix clippy warnings
Diffstat (limited to 'azalea/src/auto_tool.rs')
| -rw-r--r-- | azalea/src/auto_tool.rs | 10 |
1 files changed, 5 insertions, 5 deletions
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; } } |
