@@ -195,8 +195,7 @@ fn test_should_not_mint_above_limits() {
195195 let error = builder. get_error ( ) . expect ( "should have error" ) ;
196196 assert ! (
197197 matches!( error, CoreError :: Exec ( ExecError :: Revert ( ApiError :: User ( user_error) ) ) if user_error == Cep18Error :: Overflow as u16 ) ,
198- "Should not mint above limits, but instead: {:?}" ,
199- error
198+ "Should not mint above limits, but instead: {error:?}" ,
200199 ) ;
201200}
202201
@@ -233,8 +232,7 @@ fn test_should_not_burn_above_balance() {
233232 let error = builder. get_error ( ) . expect ( "should have error" ) ;
234233 assert ! (
235234 matches!( error, CoreError :: Exec ( ExecError :: Revert ( ApiError :: User ( user_error) ) ) if user_error == Cep18Error :: InsufficientBalance as u16 ) ,
236- "{:?}" ,
237- error
235+ "{error:?}" ,
238236 ) ;
239237}
240238
@@ -274,8 +272,7 @@ fn test_should_not_mint_or_burn_with_entrypoint_disabled() {
274272 let error = builder. get_error ( ) . expect ( "should have error" ) ;
275273 assert ! (
276274 matches!( error, CoreError :: Exec ( ExecError :: Revert ( ApiError :: User ( user_error) ) ) if user_error == 60016 ) ,
277- "{:?}" ,
278- error
275+ "{error:?}" ,
279276 ) ;
280277
281278 let burn_request = ExecuteRequestBuilder :: contract_call_by_hash (
@@ -294,8 +291,7 @@ fn test_should_not_mint_or_burn_with_entrypoint_disabled() {
294291 let error = builder. get_error ( ) . expect ( "should have error" ) ;
295292 assert ! (
296293 matches!( error, CoreError :: Exec ( ExecError :: Revert ( ApiError :: User ( user_error) ) ) if user_error == 60016 ) ,
297- "{:?}" ,
298- error
294+ "{error:?}" ,
299295 ) ;
300296}
301297
@@ -336,8 +332,7 @@ fn test_security_no_rights() {
336332 let error = builder. get_error ( ) . expect ( "should have error" ) ;
337333 assert ! (
338334 matches!( error, CoreError :: Exec ( ExecError :: Revert ( ApiError :: User ( user_error) ) ) if user_error == 60010 ) ,
339- "{:?}" ,
340- error
335+ "{error:?}" ,
341336 ) ;
342337
343338 let passing_admin_mint_request = ExecuteRequestBuilder :: contract_call_by_hash (
@@ -442,8 +437,7 @@ fn test_security_burner_rights() {
442437 let error = builder. get_error ( ) . expect ( "should have error" ) ;
443438 assert ! (
444439 matches!( error, CoreError :: Exec ( ExecError :: Revert ( ApiError :: User ( user_error) ) ) if user_error == 60010 ) ,
445- "{:?}" ,
446- error
440+ "{error:?}" ,
447441 ) ;
448442
449443 // mint by admin
@@ -532,7 +526,6 @@ fn test_change_security() {
532526 let error = builder. get_error ( ) . expect ( "should have error" ) ;
533527 assert ! (
534528 matches!( error, CoreError :: Exec ( ExecError :: Revert ( ApiError :: User ( user_error) ) ) if user_error == 60010 ) ,
535- "{:?}" ,
536- error
529+ "{error:?}" ,
537530 ) ;
538531}
0 commit comments