File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,7 +81,9 @@ impl fmt::Display for LiftError {
8181impl error:: Error for LiftError {
8282 fn cause ( & self ) -> Option < & dyn error:: Error > {
8383 match self {
84- Self :: HeightTimelockCombination | Self :: BranchExceedResourceLimits | Self :: RawDescriptorLift => None ,
84+ Self :: HeightTimelockCombination
85+ | Self :: BranchExceedResourceLimits
86+ | Self :: RawDescriptorLift => None ,
8587 }
8688 }
8789}
Original file line number Diff line number Diff line change @@ -520,7 +520,9 @@ impl<Pk: MiniscriptKey> Policy<Pk> {
520520 Some ( Self :: Unsatisfiable )
521521 }
522522 }
523- Self :: Thresh ( ref thresh) => Some ( Self :: Thresh ( thresh. map_ref ( |_| at_age. pop ( ) . unwrap ( ) ) ) ) ,
523+ Self :: Thresh ( ref thresh) => {
524+ Some ( Self :: Thresh ( thresh. map_ref ( |_| at_age. pop ( ) . unwrap ( ) ) ) )
525+ }
524526 _ => None ,
525527 } ;
526528 match new_policy {
@@ -548,7 +550,9 @@ impl<Pk: MiniscriptKey> Policy<Pk> {
548550 Some ( Self :: Unsatisfiable )
549551 }
550552 }
551- Self :: Thresh ( ref thresh) => Some ( Self :: Thresh ( thresh. map_ref ( |_| at_age. pop ( ) . unwrap ( ) ) ) ) ,
553+ Self :: Thresh ( ref thresh) => {
554+ Some ( Self :: Thresh ( thresh. map_ref ( |_| at_age. pop ( ) . unwrap ( ) ) ) )
555+ }
552556 _ => None ,
553557 } ;
554558 match new_policy {
@@ -582,7 +586,12 @@ impl<Pk: MiniscriptKey> Policy<Pk> {
582586 for data in self . rtl_post_order_iter ( ) {
583587 let minimum_n_key = match data. node {
584588 Self :: Unsatisfiable => None ,
585- Self :: Trivial | Self :: After ( ..) | Self :: Older ( ..) | Self :: Sha256 ( ..) | Self :: Hash256 ( ..) | Self :: Ripemd160 ( ..)
589+ Self :: Trivial
590+ | Self :: After ( ..)
591+ | Self :: Older ( ..)
592+ | Self :: Sha256 ( ..)
593+ | Self :: Hash256 ( ..)
594+ | Self :: Ripemd160 ( ..)
586595 | Self :: Hash160 ( ..) => Some ( 0 ) ,
587596 Self :: Key ( ..) => Some ( 1 ) ,
588597 Self :: Thresh ( ref thresh) => {
You can’t perform that action at this time.
0 commit comments