Skip to content

Commit 5a68005

Browse files
committed
Remove needless .ok() calls in main.rs
1 parent d88917f commit 5a68005

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ fn shell_exec(vm: &mut VirtualMachine, source: &str, scope: PyObjectRef) -> bool
119119
fn read_until_empty_line(input: &mut String) -> Result<i32, std::io::Error> {
120120
loop {
121121
print!("..... ");
122-
io::stdout().flush().ok().expect("Could not flush stdout");
122+
io::stdout().flush().expect("Could not flush stdout");
123123
let mut line = String::new();
124124
match io::stdin().read_line(&mut line) {
125125
Ok(0) => {
@@ -151,7 +151,7 @@ fn run_shell() {
151151
let mut input = String::new();
152152
loop {
153153
print!(">>>>> "); // Use 5 items. pypy has 4, cpython has 3.
154-
io::stdout().flush().ok().expect("Could not flush stdout");
154+
io::stdout().flush().expect("Could not flush stdout");
155155
match io::stdin().read_line(&mut input) {
156156
Ok(0) => {
157157
break;

0 commit comments

Comments
 (0)