aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/async.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/async.rs b/examples/async.rs
index b97ad24..af5ccb5 100644
--- a/examples/async.rs
+++ b/examples/async.rs
@@ -1,6 +1,6 @@
use textmode::Textmode as _;
-async fn run(tm: &mut textmode::r#async::Output) -> std::io::Result<()> {
+async fn run(tm: &mut textmode::Output) -> std::io::Result<()> {
tm.move_to(5, 5);
tm.write_str("foo");
smol::Timer::after(std::time::Duration::from_secs(2)).await;
@@ -21,8 +21,7 @@ async fn run(tm: &mut textmode::r#async::Output) -> std::io::Result<()> {
fn main() {
smol::block_on(async {
- let (mut tm, _guard) =
- textmode::r#async::Output::new().await.unwrap();
+ let (mut tm, _guard) = textmode::Output::new().await.unwrap();
let e = run(&mut tm).await;
e.unwrap();
});