Remove needless .ok() calls in main.rs

This commit is contained in:
Daniel Watkins
2018-08-28 17:04:57 -04:00
parent d88917f5a2
commit 5a68005388

View File

@@ -119,7 +119,7 @@ fn shell_exec(vm: &mut VirtualMachine, source: &str, scope: PyObjectRef) -> bool
fn read_until_empty_line(input: &mut String) -> Result<i32, std::io::Error> {
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;