From f4a3c53eee7d29bade0c074f402c4a45aa98eca8 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Fri, 12 Dec 2025 01:29:49 -0600 Subject: Delete `StartError` and `JoinError` (#296) * delete StartError and JoinError * update changelog --- azalea/examples/todo/craft_dig_straight_down.rs | 3 +-- azalea/examples/todo/mine_a_chunk.rs | 3 +-- azalea/examples/todo/pvp.rs | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'azalea/examples/todo') diff --git a/azalea/examples/todo/craft_dig_straight_down.rs b/azalea/examples/todo/craft_dig_straight_down.rs index 0d9961d4..a76c1ffe 100644 --- a/azalea/examples/todo/craft_dig_straight_down.rs +++ b/azalea/examples/todo/craft_dig_straight_down.rs @@ -9,7 +9,7 @@ struct State { } #[tokio::main] -async fn main() { +async fn main() -> AppExit { let account = Account::offline("bot"); // or let bot = Account::microsoft("email").await; @@ -17,7 +17,6 @@ async fn main() { .set_handler(handle) .start(account, "localhost") .await - .unwrap(); } async fn handle(bot: Client, event: Event, state: State) -> anyhow::Result<()> { diff --git a/azalea/examples/todo/mine_a_chunk.rs b/azalea/examples/todo/mine_a_chunk.rs index 0c439f26..6f6606f4 100644 --- a/azalea/examples/todo/mine_a_chunk.rs +++ b/azalea/examples/todo/mine_a_chunk.rs @@ -1,7 +1,7 @@ use azalea::{prelude::*, swarm::prelude::*}; #[tokio::main] -async fn main() { +async fn main() -> AppExit { let mut accounts = Vec::new(); let mut states = Vec::new(); @@ -16,7 +16,6 @@ async fn main() { .set_swarm_handler(swarm_handle) .start("localhost") .await - .unwrap(); } #[derive(Default, Clone, Component)] diff --git a/azalea/examples/todo/pvp.rs b/azalea/examples/todo/pvp.rs index d85278e8..9121444c 100644 --- a/azalea/examples/todo/pvp.rs +++ b/azalea/examples/todo/pvp.rs @@ -6,7 +6,7 @@ use azalea::{ }; #[tokio::main] -async fn main() { +async fn main() -> AppExit { let mut accounts = Vec::new(); let mut states = Vec::new(); @@ -22,7 +22,6 @@ async fn main() { .join_delay(Duration::from_millis(1000)) .start("localhost") .await - .unwrap(); } #[derive(Component, Default, Clone)] -- cgit v1.2.3