From 50b48b744fbe51accf19526a23b071ff43c9a24b Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 7 Mar 2021 18:07:13 -0500 Subject: a few renames --- examples/async.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/async.rs') 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(); -- cgit v1.2.3-54-g00ecf