Skip to content

Commit

Permalink
remove unnecessary clone
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-1 committed Oct 11, 2023
1 parent 19881c4 commit d5f424b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion azalea/src/auto_tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down
4 changes: 2 additions & 2 deletions azalea/src/swarm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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(())
},
Expand Down

0 comments on commit d5f424b

Please sign in to comment.