From da4afa8ae3afec4cd59b9a19ae1e04818f1763a7 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 4 Dec 2023 20:23:41 -0600 Subject: simplify boilerplate in examples --- azalea/README.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'azalea/README.md') diff --git a/azalea/README.md b/azalea/README.md index e9ad121d..37b05084 100755 --- a/azalea/README.md +++ b/azalea/README.md @@ -50,13 +50,11 @@ async fn main() { let account = Account::offline("bot"); // or Account::microsoft("example@example.com").await.unwrap(); - loop { - let e = ClientBuilder::new() - .set_handler(handle) - .start(account.clone(), "localhost") - .await; - eprintln!("{e:?}"); - } + ClientBuilder::new() + .set_handler(handle) + .start(account.clone(), "localhost") + .await + .unwrap(); } #[derive(Default, Clone, Component)] -- cgit v1.2.3