aboutsummaryrefslogtreecommitdiff
path: root/azalea/README.md
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-12-04 20:23:41 -0600
committermat <git@matdoes.dev>2023-12-04 20:23:41 -0600
commitda4afa8ae3afec4cd59b9a19ae1e04818f1763a7 (patch)
tree15ca61301d19808571ddf7412c732308a17391b1 /azalea/README.md
parent797dd9171088cd697b3c95663cbbc65b05315414 (diff)
downloadazalea-drasl-da4afa8ae3afec4cd59b9a19ae1e04818f1763a7.tar.xz
simplify boilerplate in examples
Diffstat (limited to 'azalea/README.md')
-rwxr-xr-xazalea/README.md12
1 files changed, 5 insertions, 7 deletions
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)]