diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-03-07 18:07:13 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-03-07 18:07:13 -0500 |
commit | 50b48b744fbe51accf19526a23b071ff43c9a24b (patch) | |
tree | 2187e9c4552f438ee032cb74ccced1f9b0736e3e /examples/async.rs | |
parent | 169af47fef8eb2a7d599ba21c1bd33eb4030267f (diff) | |
download | textmode-50b48b744fbe51accf19526a23b071ff43c9a24b.tar.gz textmode-50b48b744fbe51accf19526a23b071ff43c9a24b.zip |
a few renames
Diffstat (limited to 'examples/async.rs')
-rw-r--r-- | examples/async.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/async.rs b/examples/async.rs index 7c8769e..3736cb8 100644 --- a/examples/async.rs +++ b/examples/async.rs @@ -1,6 +1,6 @@ -use textmode::TextmodeExt as _; +use textmode::Textmode as _; -async fn run(tm: &mut textmode::r#async::Textmode) -> std::io::Result<()> { +async fn run(tm: &mut textmode::r#async::Output) -> std::io::Result<()> { tm.move_to(5, 5); tm.write_str("foo"); smol::Timer::after(std::time::Duration::from_secs(2)).await; @@ -21,7 +21,7 @@ async fn run(tm: &mut textmode::r#async::Textmode) -> std::io::Result<()> { fn main() { smol::block_on(async { - let mut tm = textmode::r#async::Textmode::new().await.unwrap(); + let mut tm = textmode::r#async::Output::new().await.unwrap(); let e = run(&mut tm).await; tm.cleanup().await.unwrap(); e.unwrap(); |