File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -468,13 +468,11 @@ impl_from_tree!(
468
468
let ret = Self :: parse_tr_script_spend( tree) ?;
469
469
Tr :: new( expression:: terminal( key, Pk :: from_str) ?, Some ( ret) )
470
470
}
471
- _ => {
472
- Err ( Error :: Unexpected ( format!(
473
- "{}[#{} args] while parsing taproot descriptor" ,
474
- top. name,
475
- top. args. len( )
476
- ) ) )
477
- }
471
+ _ => Err ( Error :: Unexpected ( format!(
472
+ "{}[#{} args] while parsing taproot descriptor" ,
473
+ top. name,
474
+ top. args. len( )
475
+ ) ) ) ,
478
476
}
479
477
} else {
480
478
Err ( Error :: Unexpected ( format!(
Original file line number Diff line number Diff line change @@ -894,9 +894,7 @@ impl<Pk: MiniscriptKey> Policy<Pk> {
894
894
TimelockInfo :: combine_threshold ( subs. len ( ) , iter)
895
895
}
896
896
Policy :: Or ( ref subs) => {
897
- let iter = subs
898
- . iter ( )
899
- . map ( |( _p, sub) | sub. check_timelocks_helper ( ) ) ;
897
+ let iter = subs. iter ( ) . map ( |( _p, sub) | sub. check_timelocks_helper ( ) ) ;
900
898
TimelockInfo :: combine_threshold ( 1 , iter)
901
899
}
902
900
}
You can’t perform that action at this time.
0 commit comments