File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 18
18
fail-fast : false
19
19
matrix :
20
20
rust :
21
- - stable
21
+ - 1.87.0 # Stable release as of 2025-05-17
22
22
- 1.70.0 # MSRV
23
- - nightly
24
23
25
24
steps :
26
25
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -23,17 +23,19 @@ fn python_fibonacci(c: &mut Criterion) {
23
23
. is_ok ( ) ;
24
24
25
25
if has_python3 {
26
- let process = create_command ( )
26
+ let mut process = create_command ( )
27
27
. stdin ( Stdio :: piped ( ) )
28
28
. stdout ( Stdio :: piped ( ) )
29
29
. spawn ( )
30
30
. expect ( "Unable to start python process" ) ;
31
31
32
32
let mut stdin = process
33
33
. stdin
34
+ . take ( )
34
35
. expect ( "Unable to get stdin for child process" ) ;
35
36
let stdout = process
36
37
. stdout
38
+ . take ( )
37
39
. expect ( "Unable to get stdout for child process" ) ;
38
40
let mut stdout = BufReader :: new ( stdout) ;
39
41
c. bench_function ( "fibonacci-python" , |b| {
@@ -51,6 +53,7 @@ fn python_fibonacci(c: &mut Criterion) {
51
53
} ) ;
52
54
53
55
// Ensure that your child process terminates itself gracefully!
56
+ process. kill ( ) . expect ( "Unable to kill child process" ) ;
54
57
}
55
58
}
56
59
You can’t perform that action at this time.
0 commit comments