From ae4f5469711705e2686fd2be65e4fbc700f93e12 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 7 Mar 2021 18:38:22 -0500 Subject: separate out the guards from the main structs --- examples/async.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/async.rs') diff --git a/examples/async.rs b/examples/async.rs index 3736cb8..b97ad24 100644 --- a/examples/async.rs +++ b/examples/async.rs @@ -21,9 +21,9 @@ async fn run(tm: &mut textmode::r#async::Output) -> std::io::Result<()> { fn main() { smol::block_on(async { - let mut tm = textmode::r#async::Output::new().await.unwrap(); + let (mut tm, _guard) = + 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