aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/swarm
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-06-14 23:43:54 -0500
committermat <git@matdoes.dev>2023-06-14 23:43:54 -0500
commitdbfbffac140e722d57a1e18bcaa27b25f839f950 (patch)
tree6fd0af00c7e024c6d161ab5624237d7cd44d908f /azalea/src/swarm
parenta514b2c9e57c39ee0a183ce2d539d2cdfc8d2e05 (diff)
downloadazalea-drasl-dbfbffac140e722d57a1e18bcaa27b25f839f950.tar.xz
Vec3::distance_to and clippy
Diffstat (limited to 'azalea/src/swarm')
-rw-r--r--azalea/src/swarm/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs
index 0bb9f7cd..ed70dacd 100644
--- a/azalea/src/swarm/mod.rs
+++ b/azalea/src/swarm/mod.rs
@@ -392,7 +392,7 @@ pub enum SwarmEvent {
///
/// You can implement an auto-reconnect by calling [`Swarm::add`]
/// with the account from this event.
- Disconnect(Account),
+ Disconnect(Box<Account>),
/// At least one bot received a chat message.
Chat(ChatPacket),
}
@@ -520,7 +520,7 @@ impl Swarm {
}
cloned_bots.lock().remove(&bot.entity);
swarm_tx
- .send(SwarmEvent::Disconnect(owned_account))
+ .send(SwarmEvent::Disconnect(Box::new(owned_account)))
.unwrap();
});