From 0cf66f816712e8e8adb941fff57823625611370a Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 9 Mar 2021 02:53:24 -0500 Subject: handle errors properly in raw guard --- examples/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/input.rs') 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), -- cgit v1.2.3-54-g00ecf