From 82ad975242292d5875780b4398b62637674bf50a Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 12 Dec 2025 00:20:50 -0430 Subject: clippy --- azalea/src/swarm/mod.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'azalea/src') diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs index e77f3713..feb3ff38 100644 --- a/azalea/src/swarm/mod.rs +++ b/azalea/src/swarm/mod.rs @@ -642,7 +642,7 @@ pub enum SwarmEvent { /// from this event. /// /// [`SwarmBuilder::reconnect_delay`]: crate::swarm::SwarmBuilder::reconnect_after - Disconnect(Box, JoinOpts), + Disconnect(Box, Box), /// At least one bot received a chat message. Chat(ChatPacket), } @@ -834,7 +834,10 @@ impl Swarm { .get_component::() .expect("bot is missing required Account component"); swarm_tx - .send(SwarmEvent::Disconnect(Box::new(account), join_opts.clone())) + .send(SwarmEvent::Disconnect( + Box::new(account), + Box::new(join_opts.clone()), + )) .unwrap(); } -- cgit v1.2.3