From 5a680053886f07538eb06ca41ea74caafaad1693 Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Tue, 28 Aug 2018 17:04:57 -0400 Subject: [PATCH] Remove needless .ok() calls in main.rs --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9722735bf..fc6c285d1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -119,7 +119,7 @@ fn shell_exec(vm: &mut VirtualMachine, source: &str, scope: PyObjectRef) -> bool fn read_until_empty_line(input: &mut String) -> Result { loop { print!("..... "); - io::stdout().flush().ok().expect("Could not flush stdout"); + io::stdout().flush().expect("Could not flush stdout"); let mut line = String::new(); match io::stdin().read_line(&mut line) { Ok(0) => { @@ -151,7 +151,7 @@ fn run_shell() { let mut input = String::new(); loop { print!(">>>>> "); // Use 5 items. pypy has 4, cpython has 3. - io::stdout().flush().ok().expect("Could not flush stdout"); + io::stdout().flush().expect("Could not flush stdout"); match io::stdin().read_line(&mut input) { Ok(0) => { break;