diff options
| author | mat <git@matdoes.dev> | 2023-10-11 00:09:25 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-10-11 00:09:25 -0500 |
| commit | d5f424b8c2fba9b3283aef36fe9e1e051636614c (patch) | |
| tree | 1a65f88f598497f3950700cc6c3059a95327f8c9 /azalea/src | |
| parent | 19881c4612fe8372d8ddffa72c33b4339704f3b6 (diff) | |
| download | azalea-drasl-d5f424b8c2fba9b3283aef36fe9e1e051636614c.tar.xz | |
remove unnecessary clone
Diffstat (limited to 'azalea/src')
| -rw-r--r-- | azalea/src/auto_tool.rs | 2 | ||||
| -rw-r--r-- | 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(()) }, |
