aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-03-07 18:40:51 -0500
committerJesse Luehrs <doy@tozt.net>2021-03-07 18:40:51 -0500
commit33613d4a93bf4c0a68a38ab492688305c8e6673d (patch)
tree5bfc266fd3477e03f633f91b25188d866daea583
parentae4f5469711705e2686fd2be65e4fbc700f93e12 (diff)
downloadtextmode-33613d4a93bf4c0a68a38ab492688305c8e6673d.tar.gz
textmode-33613d4a93bf4c0a68a38ab492688305c8e6673d.zip
cleanup
-rw-r--r--examples/async.rs5
-rw-r--r--src/lib.rs2
2 files changed, 3 insertions, 4 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();
});
diff --git a/src/lib.rs b/src/lib.rs
index e0bd91f..da46ba6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -7,7 +7,7 @@ mod input;
pub use input::{Input, Key, RawGuard};
#[cfg(feature = "async")]
-pub mod r#async;
+mod r#async;
#[cfg(feature = "async")]
pub use r#async::{Output, ScreenGuard};