@@ -213,7 +213,7 @@ fn test_function_info() -> Result<()> {
213213 let func_with_upvalues_info = func_with_upvalues. info ( ) ;
214214 assert_eq ! ( func_with_upvalues_info. num_upvalues, 2 ) ;
215215 assert_eq ! ( func_with_upvalues_info. num_params, 1 ) ;
216- assert_eq ! ( func_with_upvalues_info. is_vararg, true ) ;
216+ assert ! ( func_with_upvalues_info. is_vararg) ;
217217 }
218218
219219 Ok ( ( ) )
@@ -227,7 +227,7 @@ fn test_function_dump() -> Result<()> {
227227 let concat_lua = lua
228228 . load ( r#"function(arg1, arg2) return arg1 .. arg2 end"# )
229229 . eval :: < Function > ( ) ?;
230- let concat = lua. load ( & concat_lua. dump ( false ) ) . into_function ( ) ?;
230+ let concat = lua. load ( concat_lua. dump ( false ) ) . into_function ( ) ?;
231231
232232 assert_eq ! ( concat. call:: <String >( ( "foo" , "bar" ) ) ?, "foobar" ) ;
233233
@@ -417,7 +417,7 @@ fn test_function_wrap() -> Result<()> {
417417 // Check recursive mut callback error
418418 let fmut = Function :: wrap_mut ( |f : Function | match f. call :: < ( ) > ( & f) {
419419 Err ( Error :: CallbackError { cause, .. } ) => match cause. as_ref ( ) {
420- Error :: RecursiveMutCallback { .. } => Ok :: < _ , Error > ( ( ) ) ,
420+ Error :: RecursiveMutCallback => Ok :: < _ , Error > ( ( ) ) ,
421421 other => panic ! ( "incorrect result: {other:?}" ) ,
422422 } ,
423423 other => panic ! ( "incorrect result: {other:?}" ) ,
0 commit comments