Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Nov 29, 2024
1 parent 94c5422 commit 34ab250
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benches/benchmarks/external_process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ fn python_fibonacci(c: &mut Criterion) {
.is_ok();

if has_python3 {
let process = create_command()
let mut process = create_command()
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.spawn()
.expect("Unable to start python process");
process.wait().expect("failed to wait on child");

let mut stdin = process.stdin.expect("Unable to get stdin for child process");
let stdout = process.stdout.expect("Unable to get stdout for child process");
Expand Down

0 comments on commit 34ab250

Please sign in to comment.