@@ -440,24 +440,30 @@ fn reject_already_rejected_spend_proposal_fails() {
440440
441441 assert_ok ! ( Treasury :: propose_spend( Origin :: signed( 0 ) , 100 , 3 ) ) ;
442442 assert_ok ! ( Treasury :: reject_proposal( Origin :: root( ) , 0 ) ) ;
443- assert_noop ! ( Treasury :: reject_proposal( Origin :: root( ) , 0 ) ,
444- Error :: <Test , _>:: InvalidProposalIndex ) ;
443+ assert_noop ! (
444+ Treasury :: reject_proposal( Origin :: root( ) , 0 ) ,
445+ Error :: <Test , _>:: InvalidProposalIndex ,
446+ ) ;
445447 } ) ;
446448}
447449
448450#[ test]
449451fn reject_non_existent_spend_proposal_fails ( ) {
450452 new_test_ext ( ) . execute_with ( || {
451- assert_noop ! ( Treasury :: reject_proposal( Origin :: root( ) , 0 ) ,
452- Error :: <Test , _>:: InvalidProposalIndex ) ;
453+ assert_noop ! (
454+ Treasury :: reject_proposal( Origin :: root( ) , 0 ) ,
455+ Error :: <Test , _>:: InvalidProposalIndex ,
456+ ) ;
453457 } ) ;
454458}
455459
456460#[ test]
457461fn accept_non_existent_spend_proposal_fails ( ) {
458462 new_test_ext ( ) . execute_with ( || {
459- assert_noop ! ( Treasury :: approve_proposal( Origin :: root( ) , 0 ) ,
460- Error :: <Test , _>:: InvalidProposalIndex ) ;
463+ assert_noop ! (
464+ Treasury :: approve_proposal( Origin :: root( ) , 0 ) ,
465+ Error :: <Test , _>:: InvalidProposalIndex ,
466+ ) ;
461467 } ) ;
462468}
463469
@@ -468,8 +474,10 @@ fn accept_already_rejected_spend_proposal_fails() {
468474
469475 assert_ok ! ( Treasury :: propose_spend( Origin :: signed( 0 ) , 100 , 3 ) ) ;
470476 assert_ok ! ( Treasury :: reject_proposal( Origin :: root( ) , 0 ) ) ;
471- assert_noop ! ( Treasury :: approve_proposal( Origin :: root( ) , 0 ) ,
472- Error :: <Test , _>:: InvalidProposalIndex ) ;
477+ assert_noop ! (
478+ Treasury :: approve_proposal( Origin :: root( ) , 0 ) ,
479+ Error :: <Test , _>:: InvalidProposalIndex ,
480+ ) ;
473481 } ) ;
474482}
475483
0 commit comments