From dbfbffac140e722d57a1e18bcaa27b25f839f950 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 14 Jun 2023 23:43:54 -0500 Subject: Vec3::distance_to and clippy --- azalea/src/swarm/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea/src') 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), /// 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(); }); -- cgit v1.2.3