@@ -50,7 +50,7 @@ fn bench_cpython_parse_to_ast(b: &mut test::Bencher) {
50
50
b. bytes = source. len ( ) as _ ;
51
51
b. iter ( || {
52
52
let res: cpython:: PyResult < cpython:: PyObject > = python. eval ( code, globals, Some ( & locals) ) ;
53
- assert_eq ! ( res. is_ok( ) , true ) ;
53
+ assert ! ( res. is_ok( ) ) ;
54
54
} )
55
55
}
56
56
@@ -66,7 +66,7 @@ fn bench_cpython_nbody(b: &mut test::Bencher) {
66
66
67
67
b. iter ( || {
68
68
let res: cpython:: PyResult < ( ) > = python. run ( source, globals, locals) ;
69
- assert_eq ! ( res. is_ok( ) , true ) ;
69
+ assert ! ( res. is_ok( ) ) ;
70
70
} )
71
71
}
72
72
@@ -82,7 +82,7 @@ fn bench_cpython_mandelbrot(b: &mut test::Bencher) {
82
82
83
83
b. iter ( || {
84
84
let res: cpython:: PyResult < ( ) > = python. run ( source, globals, locals) ;
85
- assert_eq ! ( res. is_ok( ) , true ) ;
85
+ assert ! ( res. is_ok( ) ) ;
86
86
} )
87
87
}
88
88
@@ -101,7 +101,7 @@ fn bench_rustpy_nbody(b: &mut test::Bencher) {
101
101
b. iter ( || {
102
102
let scope = vm. ctx . new_scope ( ) ;
103
103
let res: PyResult = vm. run_code_obj ( code. clone ( ) , scope) ;
104
- assert_eq ! ( res. is_ok( ) , true ) ;
104
+ assert ! ( res. is_ok( ) ) ;
105
105
} )
106
106
}
107
107
@@ -120,6 +120,6 @@ fn bench_rustpy_mandelbrot(b: &mut test::Bencher) {
120
120
b. iter ( || {
121
121
let scope = vm. ctx . new_scope ( ) ;
122
122
let res: PyResult = vm. run_code_obj ( code. clone ( ) , scope) ;
123
- assert_eq ! ( res. is_ok( ) , true ) ;
123
+ assert ! ( res. is_ok( ) ) ;
124
124
} )
125
125
}
0 commit comments