diff options
| author | mat <git@matdoes.dev> | 2023-12-04 20:23:41 -0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-12-04 20:23:41 -0600 |
| commit | da4afa8ae3afec4cd59b9a19ae1e04818f1763a7 (patch) | |
| tree | 15ca61301d19808571ddf7412c732308a17391b1 /azalea/README.md | |
| parent | 797dd9171088cd697b3c95663cbbc65b05315414 (diff) | |
| download | azalea-drasl-da4afa8ae3afec4cd59b9a19ae1e04818f1763a7.tar.xz | |
simplify boilerplate in examples
Diffstat (limited to 'azalea/README.md')
| -rwxr-xr-x | azalea/README.md | 12 |
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)] |
