aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--azalea/src/auto_tool.rs2
-rw-r--r--azalea/src/swarm/mod.rs4
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(())
},