File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/governance_state/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -632,7 +632,7 @@ mod tests {
632632 expiration_epoch : None ,
633633 } ;
634634 voting. action_status . insert ( oc2. voting . procedure . gov_action_id . clone ( ) , as2. clone ( ) ) ;
635- match voting. update_action_status_with_outcomes ( 2 , & [ oc2. clone ( ) ] ) {
635+ match voting. update_action_status_with_outcomes ( 2 , std :: slice :: from_ref ( & oc2) ) {
636636 Err ( e) => assert_eq ! (
637637 e. to_string( ) ,
638638 "Impossible outcome: gov_action1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq\
@@ -645,7 +645,7 @@ mod tests {
645645 * voting. action_status. get( & oc2. voting. procedure. gov_action_id) . unwrap( ) ,
646646 as2
647647 ) ;
648- voting. update_action_status_with_outcomes ( 5 , & [ oc2. clone ( ) ] ) ?;
648+ voting. update_action_status_with_outcomes ( 5 , std :: slice :: from_ref ( & oc2) ) ?;
649649 assert_eq ! (
650650 voting. action_status. get( & oc2. voting. procedure. gov_action_id) . unwrap( ) . expiration_epoch,
651651 Some ( 5 )
You can’t perform that action at this time.
0 commit comments