From d5f424b8c2fba9b3283aef36fe9e1e051636614c Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 11 Oct 2023 00:09:25 -0500 Subject: [PATCH] remove unnecessary clone --- azalea/src/auto_tool.rs | 2 +- azalea/src/swarm/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/azalea/src/auto_tool.rs b/azalea/src/auto_tool.rs index 718ed6a7..d7501f04 100644 --- a/azalea/src/auto_tool.rs +++ b/azalea/src/auto_tool.rs @@ -66,7 +66,7 @@ pub fn accurate_best_tool_in_hotbar_for_block( let this_item_speed = azalea_entity::mining::get_mine_progress( block.as_ref(), item_slot.kind, - &menu, + menu, fluid_on_eyes, physics, ); diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs index af381c0b..6fae5d34 100644 --- a/azalea/src/swarm/mod.rs +++ b/azalea/src/swarm/mod.rs @@ -350,7 +350,7 @@ where // if there's a join delay, then join one by one for (account, state) in accounts.iter().zip(states) { swarm_clone - .add_with_exponential_backoff(account, state.clone()) + .add_with_exponential_backoff(account, state) .await; tokio::time::sleep(join_delay).await; } @@ -361,7 +361,7 @@ where async move |(account, state)| -> Result<(), JoinError> { swarm_borrow .clone() - .add_with_exponential_backoff(account, state.clone()) + .add_with_exponential_backoff(account, state) .await; Ok(()) },