@@ -528,10 +528,10 @@ impl Task {
528528 Self {
529529 id,
530530 ty,
531- state : RwLock :: new ( TaskMetaState :: Full ( box TaskState :: new (
531+ state : RwLock :: new ( TaskMetaState :: Full ( Box :: new ( TaskState :: new (
532532 description,
533533 stats_type,
534- ) ) ) ,
534+ ) ) ) ) ,
535535 }
536536 }
537537
@@ -546,10 +546,8 @@ impl Task {
546546 Self {
547547 id,
548548 ty,
549- state : RwLock :: new ( TaskMetaState :: Full ( box TaskState :: new_scheduled_in_scope (
550- description,
551- scope,
552- stats_type,
549+ state : RwLock :: new ( TaskMetaState :: Full ( Box :: new (
550+ TaskState :: new_scheduled_in_scope ( description, scope, stats_type) ,
553551 ) ) ) ,
554552 }
555553 }
@@ -565,10 +563,8 @@ impl Task {
565563 Self {
566564 id,
567565 ty,
568- state : RwLock :: new ( TaskMetaState :: Full ( box TaskState :: new_scheduled_in_scope (
569- description,
570- scope,
571- stats_type,
566+ state : RwLock :: new ( TaskMetaState :: Full ( Box :: new (
567+ TaskState :: new_scheduled_in_scope ( description, scope, stats_type) ,
572568 ) ) ) ,
573569 }
574570 }
@@ -579,18 +575,18 @@ impl Task {
579575 trait_type_id : TraitTypeId ,
580576 stats_type : StatsType ,
581577 ) -> Self {
582- let ty = TaskType :: ReadScopeCollectibles ( box ReadScopeCollectiblesTaskType {
578+ let ty = TaskType :: ReadScopeCollectibles ( Box :: new ( ReadScopeCollectiblesTaskType {
583579 scope : target_scope,
584580 trait_type : trait_type_id,
585- } ) ;
581+ } ) ) ;
586582 let description = Self :: get_event_description_static ( id, & ty) ;
587583 Self {
588584 id,
589585 ty,
590- state : RwLock :: new ( TaskMetaState :: Full ( box TaskState :: new (
586+ state : RwLock :: new ( TaskMetaState :: Full ( Box :: new ( TaskState :: new (
591587 description,
592588 stats_type,
593- ) ) ) ,
589+ ) ) ) ) ,
594590 }
595591 }
596592
@@ -601,19 +597,19 @@ impl Task {
601597 trait_type_id : TraitTypeId ,
602598 stats_type : StatsType ,
603599 ) -> Self {
604- let ty = TaskType :: ReadTaskCollectibles ( box ReadTaskCollectiblesTaskType {
600+ let ty = TaskType :: ReadTaskCollectibles ( Box :: new ( ReadTaskCollectiblesTaskType {
605601 task : target_task,
606602 trait_type : trait_type_id,
607- } ) ;
603+ } ) ) ;
608604 let description = Self :: get_event_description_static ( id, & ty) ;
609605 Self {
610606 id,
611607 ty,
612- state : RwLock :: new ( TaskMetaState :: Full ( box TaskState :: new_root_scoped (
608+ state : RwLock :: new ( TaskMetaState :: Full ( Box :: new ( TaskState :: new_root_scoped (
613609 description,
614610 scope,
615611 stats_type,
616- ) ) ) ,
612+ ) ) ) ) ,
617613 }
618614 }
619615
@@ -2787,7 +2783,7 @@ impl Task {
27872783 if unset {
27882784 * state = TaskMetaState :: Unloaded ( UnloadedTaskState { stats_type } ) ;
27892785 } else {
2790- * state = TaskMetaState :: Partial ( box PartialTaskState { scopes, stats_type } ) ;
2786+ * state = TaskMetaState :: Partial ( Box :: new ( PartialTaskState { scopes, stats_type } ) ) ;
27912787 }
27922788 drop ( state) ;
27932789
0 commit comments