@@ -74,7 +74,7 @@ fn table_get_set(c: &mut Criterion) {
74
74
. enumerate ( )
75
75
{
76
76
table. raw_set ( s, i) . unwrap ( ) ;
77
- assert_eq ! ( table. raw_get:: <_ , usize >( s) . unwrap( ) , i) ;
77
+ assert_eq ! ( table. raw_get:: <usize >( s) . unwrap( ) , i) ;
78
78
}
79
79
} ,
80
80
BatchSize :: SmallInput ,
@@ -153,7 +153,7 @@ fn function_call_sum(c: &mut Criterion) {
153
153
b. iter_batched (
154
154
|| collect_gc_twice ( & lua) ,
155
155
|_| {
156
- assert_eq ! ( sum. call:: <_ , i64 >( ( 10 , 20 , 30 ) ) . unwrap( ) , 0 ) ;
156
+ assert_eq ! ( sum. call:: <i64 >( ( 10 , 20 , 30 ) ) . unwrap( ) , 0 ) ;
157
157
} ,
158
158
BatchSize :: SmallInput ,
159
159
) ;
@@ -172,7 +172,7 @@ fn function_call_lua_sum(c: &mut Criterion) {
172
172
b. iter_batched (
173
173
|| collect_gc_twice ( & lua) ,
174
174
|_| {
175
- assert_eq ! ( sum. call:: <_ , i64 >( ( 10 , 20 , 30 ) ) . unwrap( ) , 0 ) ;
175
+ assert_eq ! ( sum. call:: <i64 >( ( 10 , 20 , 30 ) ) . unwrap( ) , 0 ) ;
176
176
} ,
177
177
BatchSize :: SmallInput ,
178
178
) ;
@@ -195,7 +195,7 @@ fn function_call_concat(c: &mut Criterion) {
195
195
} ,
196
196
|i| {
197
197
assert_eq ! (
198
- concat. call:: <_ , LuaString >( ( "num:" , i) ) . unwrap( ) ,
198
+ concat. call:: <LuaString >( ( "num:" , i) ) . unwrap( ) ,
199
199
format!( "num:{i}" )
200
200
) ;
201
201
} ,
@@ -221,7 +221,7 @@ fn function_call_lua_concat(c: &mut Criterion) {
221
221
} ,
222
222
|i| {
223
223
assert_eq ! (
224
- concat. call:: <_ , LuaString >( ( "num:" , i) ) . unwrap( ) ,
224
+ concat. call:: <LuaString >( ( "num:" , i) ) . unwrap( ) ,
225
225
format!( "num:{i}" )
226
226
) ;
227
227
} ,
@@ -246,7 +246,7 @@ fn function_async_call_sum(c: &mut Criterion) {
246
246
b. to_async ( rt) . iter_batched (
247
247
|| collect_gc_twice ( & lua) ,
248
248
|_| async {
249
- assert_eq ! ( sum. call_async:: <_ , i64 >( ( 10 , 20 , 30 ) ) . await . unwrap( ) , 0 ) ;
249
+ assert_eq ! ( sum. call_async:: <i64 >( ( 10 , 20 , 30 ) ) . await . unwrap( ) , 0 ) ;
250
250
} ,
251
251
BatchSize :: SmallInput ,
252
252
) ;
@@ -319,7 +319,7 @@ fn userdata_call_index(c: &mut Criterion) {
319
319
b. iter_batched (
320
320
|| collect_gc_twice ( & lua) ,
321
321
|_| {
322
- assert_eq ! ( index. call:: <_ , LuaString >( & ud) . unwrap( ) , "test" ) ;
322
+ assert_eq ! ( index. call:: <LuaString >( & ud) . unwrap( ) , "test" ) ;
323
323
} ,
324
324
BatchSize :: SmallInput ,
325
325
) ;
@@ -349,7 +349,7 @@ fn userdata_call_method(c: &mut Criterion) {
349
349
i. fetch_add ( 1 , Ordering :: Relaxed )
350
350
} ,
351
351
|i| {
352
- assert_eq ! ( method. call:: <_ , usize >( ( & ud, i) ) . unwrap( ) , 123 + i) ;
352
+ assert_eq ! ( method. call:: <usize >( ( & ud, i) ) . unwrap( ) , 123 + i) ;
353
353
} ,
354
354
BatchSize :: SmallInput ,
355
355
) ;
@@ -384,7 +384,7 @@ fn userdata_async_call_method(c: &mut Criterion) {
384
384
( method. clone ( ) , ud. clone ( ) , i. fetch_add ( 1 , Ordering :: Relaxed ) )
385
385
} ,
386
386
|( method, ud, i) | async move {
387
- assert_eq ! ( method. call_async:: <_ , usize >( ( ud, i) ) . await . unwrap( ) , 123 + i) ;
387
+ assert_eq ! ( method. call_async:: <usize >( ( ud, i) ) . await . unwrap( ) , 123 + i) ;
388
388
} ,
389
389
BatchSize :: SmallInput ,
390
390
) ;
0 commit comments