diff options
| author | mat <git@matdoes.dev> | 2025-12-12 00:20:50 -0430 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-12-12 00:20:50 -0430 |
| commit | 82ad975242292d5875780b4398b62637674bf50a (patch) | |
| tree | a904d9dde2a7467cddfb7dc6b3ae4de485bd8b0f /azalea/src | |
| parent | 4a66f002c276a57e028e9456f6800b0b3c248885 (diff) | |
| download | azalea-drasl-82ad975242292d5875780b4398b62637674bf50a.tar.xz | |
clippy
Diffstat (limited to 'azalea/src')
| -rw-r--r-- | azalea/src/swarm/mod.rs | 7 |
1 files changed, 5 insertions, 2 deletions
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<Account>, JoinOpts), + Disconnect(Box<Account>, Box<JoinOpts>), /// At least one bot received a chat message. Chat(ChatPacket), } @@ -834,7 +834,10 @@ impl Swarm { .get_component::<Account>() .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(); } |
