Skip to content

Commit 827677f

Browse files
committed
bug fixes
1 parent 8a50493 commit 827677f

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

Cargo.lock

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.rs

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1+
use std::process::Child;
2+
use std::process::Command;
3+
use std::process::Stdio;
4+
use std::env;
5+
use std::path::Path;
6+
use std::io::Write;
7+
use std::io::stdin;
8+
use std::io::stdout;
9+
110
fn main(){
211
loop {
312
print!("> ");
4-
stdout().flush();
13+
let _ = stdout().flush();
514

615
let mut input = String::new();
716
stdin().read_line(&mut input).unwrap();
@@ -64,7 +73,7 @@ fn main(){
6473

6574
if let Some(mut final_command) = previous_command {
6675
// block until the final command has finished
67-
final_command.wait();
76+
let _ = final_command.wait();
6877
}
6978

7079
}

0 commit comments

Comments
 (0)