From d5f424b8c2fba9b3283aef36fe9e1e051636614c Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 11 Oct 2023 00:09:25 -0500 Subject: remove unnecessary clone --- azalea/src/swarm/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea/src/swarm') 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(()) }, -- cgit v1.2.3