@@ -620,8 +620,7 @@ impl State {
620620 not_found;
621621 "sector {} not a member of partition {}, deadline {}" ,
622622 sector_number, partition_idx, deadline_idx
623- )
624- . into ( ) ) ;
623+ ) ) ;
625624 }
626625
627626 let faulty = partition. faults . get ( sector_number) ;
@@ -660,26 +659,23 @@ impl State {
660659 not_found;
661660 "sector {} not a member of partition {}, deadline {}" ,
662661 sector_number, partition_idx, deadline_idx
663- )
664- . into ( ) ) ;
662+ ) ) ;
665663 }
666664
667665 if partition. faults . get ( sector_number) {
668666 return Err ( actor_error ! (
669667 forbidden;
670668 "sector {} not a member of partition {}, deadline {}" ,
671669 sector_number, partition_idx, deadline_idx
672- )
673- . into ( ) ) ;
670+ ) ) ;
674671 }
675672
676673 if partition. terminated . get ( sector_number) {
677674 return Err ( actor_error ! (
678675 not_found;
679676 "sector {} not of partition {}, deadline {} is terminated" ,
680677 sector_number, partition_idx, deadline_idx
681- )
682- . into ( ) ) ;
678+ ) ) ;
683679 }
684680
685681 Ok ( ( ) )
@@ -691,7 +687,7 @@ impl State {
691687 store : & BS ,
692688 sectors : & BitField ,
693689 ) -> Result < Vec < SectorOnChainInfo > , ActorError > {
694- Ok ( Sectors :: load ( store, & self . sectors ) ?. load_sector ( sectors) ? )
690+ Sectors :: load ( store, & self . sectors ) ?. load_sector ( sectors)
695691 }
696692
697693 pub fn load_deadlines < BS : Blockstore > ( & self , store : & BS ) -> Result < Deadlines , ActorError > {
@@ -717,12 +713,12 @@ impl State {
717713 & self ,
718714 store : & BS ,
719715 ) -> Result < VestingFunds , ActorError > {
720- Ok ( store
716+ store
721717 . get_cbor ( & self . vesting_funds )
722718 . with_context ( || format ! ( "failed to load vesting funds {}" , self . vesting_funds) ) ?
723719 . ok_or_else (
724720 || actor_error ! ( not_found; "failed to load vesting funds {:?}" , self . vesting_funds) ,
725- ) ? )
721+ )
726722 }
727723
728724 /// Saves the vesting table to the store.
@@ -868,8 +864,7 @@ impl State {
868864 "unlocked balance can not repay fee debt ({} < {})" ,
869865 unlocked_balance,
870866 self . fee_debt
871- )
872- . into ( ) ) ;
867+ ) ) ;
873868 }
874869
875870 Ok ( std:: mem:: take ( & mut self . fee_debt ) )
@@ -1175,9 +1170,7 @@ impl State {
11751170 make_map_with_root_and_bitwidth ( & self . pre_committed_sectors , store, HAMT_BIT_WIDTH ) ?;
11761171 for sector_no in sector_nos. iter ( ) {
11771172 if sector_no as u64 > MAX_SECTOR_NUMBER {
1178- return Err (
1179- actor_error ! ( illegal_argument; "sector number greater than maximum" ) . into ( )
1180- ) ;
1173+ return Err ( actor_error ! ( illegal_argument; "sector number greater than maximum" ) ) ;
11811174 }
11821175 let info: & SectorPreCommitOnChainInfo =
11831176 precommitted
0 commit comments