diff options
| author | mat <git@matdoes.dev> | 2024-12-25 12:09:27 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-12-25 12:09:27 +0000 |
| commit | e11a902fba8c8c63be982afbc6085a49c6a19f12 (patch) | |
| tree | 3173f3b5d0228ed08088da9b8a0cccd0376474d5 /azalea/examples | |
| parent | 2f1fe5f9f6fcb5ed1ed515793e383bcb37f587d9 (diff) | |
| download | azalea-drasl-e11a902fba8c8c63be982afbc6085a49c6a19f12.tar.xz | |
patch pathfinder obstructions instead of just truncating the path
Diffstat (limited to 'azalea/examples')
| -rw-r--r-- | azalea/examples/testbot/main.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/azalea/examples/testbot/main.rs b/azalea/examples/testbot/main.rs index a9ba978a..680363e6 100644 --- a/azalea/examples/testbot/main.rs +++ b/azalea/examples/testbot/main.rs @@ -188,11 +188,7 @@ async fn handle(bot: Client, event: azalea::Event, state: State) -> anyhow::Resu Ok(()) } -async fn swarm_handle( - mut swarm: Swarm, - event: SwarmEvent, - _state: SwarmState, -) -> anyhow::Result<()> { +async fn swarm_handle(swarm: Swarm, event: SwarmEvent, _state: SwarmState) -> anyhow::Result<()> { match &event { SwarmEvent::Disconnect(account, join_opts) => { println!("bot got kicked! {}", account.username); |
