From 5a0189b6ae92d76c460277c2da6147d22ff1619a Mon Sep 17 00:00:00 2001 From: mrMiiao <90341146+mrMiiao@users.noreply.github.com> Date: Thu, 11 Aug 2022 16:30:49 +0300 Subject: [PATCH] Update interpreter.rs --- src/interpreter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interpreter.rs b/src/interpreter.rs index 7e6ac50..dd16ea7 100644 --- a/src/interpreter.rs +++ b/src/interpreter.rs @@ -219,8 +219,8 @@ impl Interpreter { fn input(&self, value: &String) -> Value { let mut input = String::new(); print!("{}", value); - io::stdout().flush().unwrap_or_default(); - io::stdin().read_line(&mut input).unwrap_or_default(); + io::stdout().flush().expect("Couldn't flush Stdout"); + io::stdin().read_line(&mut input).expect("Couldn't read from Stdin"); Value::String(input.trim_end().to_string()) }