@@ -620,8 +620,7 @@ impl State {
620
620
not_found;
621
621
"sector {} not a member of partition {}, deadline {}" ,
622
622
sector_number, partition_idx, deadline_idx
623
- )
624
- . into ( ) ) ;
623
+ ) ) ;
625
624
}
626
625
627
626
let faulty = partition. faults . get ( sector_number) ;
@@ -660,26 +659,23 @@ impl State {
660
659
not_found;
661
660
"sector {} not a member of partition {}, deadline {}" ,
662
661
sector_number, partition_idx, deadline_idx
663
- )
664
- . into ( ) ) ;
662
+ ) ) ;
665
663
}
666
664
667
665
if partition. faults . get ( sector_number) {
668
666
return Err ( actor_error ! (
669
667
forbidden;
670
668
"sector {} not a member of partition {}, deadline {}" ,
671
669
sector_number, partition_idx, deadline_idx
672
- )
673
- . into ( ) ) ;
670
+ ) ) ;
674
671
}
675
672
676
673
if partition. terminated . get ( sector_number) {
677
674
return Err ( actor_error ! (
678
675
not_found;
679
676
"sector {} not of partition {}, deadline {} is terminated" ,
680
677
sector_number, partition_idx, deadline_idx
681
- )
682
- . into ( ) ) ;
678
+ ) ) ;
683
679
}
684
680
685
681
Ok ( ( ) )
@@ -691,7 +687,7 @@ impl State {
691
687
store : & BS ,
692
688
sectors : & BitField ,
693
689
) -> Result < Vec < SectorOnChainInfo > , ActorError > {
694
- Ok ( Sectors :: load ( store, & self . sectors ) ?. load_sector ( sectors) ? )
690
+ Sectors :: load ( store, & self . sectors ) ?. load_sector ( sectors)
695
691
}
696
692
697
693
pub fn load_deadlines < BS : Blockstore > ( & self , store : & BS ) -> Result < Deadlines , ActorError > {
@@ -717,12 +713,12 @@ impl State {
717
713
& self ,
718
714
store : & BS ,
719
715
) -> Result < VestingFunds , ActorError > {
720
- Ok ( store
716
+ store
721
717
. get_cbor ( & self . vesting_funds )
722
718
. with_context ( || format ! ( "failed to load vesting funds {}" , self . vesting_funds) ) ?
723
719
. ok_or_else (
724
720
|| actor_error ! ( not_found; "failed to load vesting funds {:?}" , self . vesting_funds) ,
725
- ) ? )
721
+ )
726
722
}
727
723
728
724
/// Saves the vesting table to the store.
@@ -868,8 +864,7 @@ impl State {
868
864
"unlocked balance can not repay fee debt ({} < {})" ,
869
865
unlocked_balance,
870
866
self . fee_debt
871
- )
872
- . into ( ) ) ;
867
+ ) ) ;
873
868
}
874
869
875
870
Ok ( std:: mem:: take ( & mut self . fee_debt ) )
@@ -1175,9 +1170,7 @@ impl State {
1175
1170
make_map_with_root_and_bitwidth ( & self . pre_committed_sectors , store, HAMT_BIT_WIDTH ) ?;
1176
1171
for sector_no in sector_nos. iter ( ) {
1177
1172
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" ) ) ;
1181
1174
}
1182
1175
let info: & SectorPreCommitOnChainInfo =
1183
1176
precommitted
0 commit comments