Skip to content

Commit 0d069a9

Browse files
committed
normalize the use statements in examples
1 parent 925766e commit 0d069a9

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

examples/basic.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
use std::fs::read_to_string;
22

3+
use anathema::backend::Backend;
34
use anathema::backend::tui::TuiBackend;
45
use anathema::runtime::Runtime;
5-
use anathema::templates::Document;
6-
use anathema_backend::Backend;
7-
use anathema_templates::ToSourceKind;
6+
use anathema::templates::{Document, ToSourceKind};
87

98
fn main() {
109
let template = read_to_string("examples/templates/basic/basic.aml").unwrap();

examples/message-passing.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
use anathema::backend::Backend;
12
use anathema::backend::tui::TuiBackend;
23
use anathema::component::{Children, Component, Context, MouseEvent};
34
use anathema::runtime::Runtime;
45
use anathema::state::{List, State, Value};
56
use anathema::templates::Document;
6-
use anathema_backend::Backend;
77

88
pub struct Index;
99

@@ -86,7 +86,5 @@ fn main() {
8686
)
8787
.expect("failed to register index component");
8888

89-
builder
90-
.finish(&mut backend, |runtime, backend| runtime.run(backend))
91-
.unwrap();
89+
_ = builder.finish(&mut backend, |runtime, backend| runtime.run(backend));
9290
}

0 commit comments

Comments
 (0)