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!(
468468 let ret = Self :: parse_tr_script_spend( tree) ?;
469469 Tr :: new( expression:: terminal( key, Pk :: from_str) ?, Some ( ret) )
470470 }
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+ ) ) ) ,
478476 }
479477 } else {
480478 Err ( Error :: Unexpected ( format!(
Original file line number Diff line number Diff line change @@ -894,9 +894,7 @@ impl<Pk: MiniscriptKey> Policy<Pk> {
894894 TimelockInfo :: combine_threshold ( subs. len ( ) , iter)
895895 }
896896 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 ( ) ) ;
900898 TimelockInfo :: combine_threshold ( 1 , iter)
901899 }
902900 }
You can’t perform that action at this time.
0 commit comments