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/basic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/basic.rs') diff --git a/examples/basic.rs b/examples/basic.rs index fb13d89..f3f846d 100644 --- a/examples/basic.rs +++ b/examples/basic.rs @@ -1,7 +1,7 @@ use textmode::Textmode as _; fn main() { - let mut tm = textmode::blocking::Output::new().unwrap(); + let (mut tm, _guard) = textmode::blocking::Output::new().unwrap(); tm.move_to(5, 5); tm.write_str("foo"); -- cgit v1.2.3-54-g00ecf