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/examples/todo | |
| parent | 797dd9171088cd697b3c95663cbbc65b05315414 (diff) | |
| download | azalea-drasl-da4afa8ae3afec4cd59b9a19ae1e04818f1763a7.tar.xz | |
simplify boilerplate in examples
Diffstat (limited to 'azalea/examples/todo')
| -rw-r--r-- | azalea/examples/todo/mine_a_chunk.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/azalea/examples/todo/mine_a_chunk.rs b/azalea/examples/todo/mine_a_chunk.rs index 74ffacac..0c439f26 100644 --- a/azalea/examples/todo/mine_a_chunk.rs +++ b/azalea/examples/todo/mine_a_chunk.rs @@ -10,12 +10,13 @@ async fn main() { states.push(State::default()); } - let e = SwarmBuilder::new() + SwarmBuilder::new() .add_accounts(accounts.clone()) .set_handler(handle) .set_swarm_handler(swarm_handle) .start("localhost") - .await; + .await + .unwrap(); } #[derive(Default, Clone, Component)] |
