diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-03-12 12:20:06 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-03-12 12:20:06 -0500 |
commit | 7c06da9c0f3402efbc3954e9f14b1d039fd38929 (patch) | |
tree | 57d06edf5b1dd15b51c3bb771845ce215b698a53 /examples/input.rs | |
parent | f3498d0afe3bd36cf3e9f553776518fd458a39af (diff) | |
download | textmode-7c06da9c0f3402efbc3954e9f14b1d039fd38929.tar.gz textmode-7c06da9c0f3402efbc3954e9f14b1d039fd38929.zip |
move the guards back onto the main objects
Diffstat (limited to 'examples/input.rs')
-rw-r--r-- | examples/input.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/input.rs b/examples/input.rs index fa9215f..a3b1f1d 100644 --- a/examples/input.rs +++ b/examples/input.rs @@ -1,6 +1,6 @@ #[cfg(feature = "async")] async fn async_main() { - let (mut input, _raw) = textmode::Input::new().await.unwrap(); + let mut input = textmode::Input::new().await.unwrap(); for arg in std::env::args().skip(1) { match arg.as_str() { "--disable-utf8" => input.parse_utf8(false), @@ -34,7 +34,7 @@ fn main() { #[cfg(not(feature = "async"))] fn main() { - let (mut input, _raw) = textmode::blocking::Input::new().unwrap(); + let mut input = textmode::blocking::Input::new().unwrap(); for arg in std::env::args().skip(1) { match arg.as_str() { "--disable-utf8" => input.parse_utf8(false), |