aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/input.rs2
-rw-r--r--examples/tmux.rs2
2 files changed, 2 insertions, 2 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),
diff --git a/examples/tmux.rs b/examples/tmux.rs
index 490a22b..d5969e3 100644
--- a/examples/tmux.rs
+++ b/examples/tmux.rs
@@ -303,7 +303,7 @@ struct Tmux {
impl Tmux {
async fn new() -> Self {
- let (input, _raw) = textmode::Input::new();
+ let (input, _raw) = textmode::Input::new().unwrap();
let (tm, _screen) = textmode::Output::new().await.unwrap();
let state = State::new();
Self {