diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2025-12-12 01:29:49 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-12 01:29:49 -0600 |
| commit | f4a3c53eee7d29bade0c074f402c4a45aa98eca8 (patch) | |
| tree | f25ec1d1390c5e96aba858141206a05812135b95 /azalea/examples/todo | |
| parent | 7f761df3e7b72ce75be21ab9b3a533d0a5a938a5 (diff) | |
| download | azalea-drasl-f4a3c53eee7d29bade0c074f402c4a45aa98eca8.tar.xz | |
Delete `StartError` and `JoinError` (#296)
* delete StartError and JoinError
* update changelog
Diffstat (limited to 'azalea/examples/todo')
| -rw-r--r-- | azalea/examples/todo/craft_dig_straight_down.rs | 3 | ||||
| -rw-r--r-- | azalea/examples/todo/mine_a_chunk.rs | 3 | ||||
| -rw-r--r-- | azalea/examples/todo/pvp.rs | 3 |
3 files changed, 3 insertions, 6 deletions
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)] |
