aboutsummaryrefslogtreecommitdiffstats
path: root/examples/input.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-03-09 02:53:24 -0500
committerJesse Luehrs <doy@tozt.net>2021-03-09 02:56:10 -0500
commit0cf66f816712e8e8adb941fff57823625611370a (patch)
treee6e2ac14a754084a8d7cf719e8d37c1a88d6d84e /examples/input.rs
parent4fc328e1dfb79a2cba14f603a5dd175d6029f30f (diff)
downloadtextmode-0cf66f816712e8e8adb941fff57823625611370a.tar.gz
textmode-0cf66f816712e8e8adb941fff57823625611370a.zip
handle errors properly in raw guard
Diffstat (limited to 'examples/input.rs')
-rw-r--r--examples/input.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/input.rs b/examples/input.rs
index e63787b..d478f92 100644
--- a/examples/input.rs
+++ b/examples/input.rs
@@ -1,5 +1,5 @@
fn main() {
- let (mut input, _raw) = textmode::blocking::Input::new();
+ let (mut input, _raw) = textmode::blocking::Input::new().unwrap();
for arg in std::env::args().skip(1) {
match arg.as_str() {
"--disable-utf8" => input.parse_utf8(false),