mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
remove unnecessary clone
This commit is contained in:
parent
19881c4612
commit
d5f424b8c2
2 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
);
|
||||
|
|
|
@ -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(())
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue