File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1567,7 +1567,7 @@ mod tests {
1567
1567
( 1 , Arc :: new( Concrete :: Thresh ( keys_b. len( ) , keys_b) ) ) ,
1568
1568
] )
1569
1569
. compile ( ) ;
1570
- let script_size = thresh_res. clone ( ) . and_then ( |m| Ok ( m. script_size ( ) ) ) ;
1570
+ let script_size = thresh_res. clone ( ) . map ( |m| m. script_size ( ) ) ;
1571
1571
assert_eq ! (
1572
1572
thresh_res,
1573
1573
Err ( CompilerError :: LimitsExceeded ) ,
@@ -1584,7 +1584,7 @@ mod tests {
1584
1584
let thresh_res: Result < SegwitMiniScript , _ > = Concrete :: Thresh ( keys. len ( ) , keys) . compile ( ) ;
1585
1585
let n_elements = thresh_res
1586
1586
. clone ( )
1587
- . and_then ( |m| Ok ( m. max_satisfaction_witness_elements ( ) ) ) ;
1587
+ . map ( |m| m. max_satisfaction_witness_elements ( ) ) ;
1588
1588
assert_eq ! (
1589
1589
thresh_res,
1590
1590
Err ( CompilerError :: LimitsExceeded ) ,
@@ -1603,7 +1603,7 @@ mod tests {
1603
1603
. collect ( ) ;
1604
1604
let thresh_res: Result < SegwitMiniScript , _ > =
1605
1605
Concrete :: Thresh ( keys. len ( ) - 1 , keys) . compile ( ) ;
1606
- let ops_count = thresh_res. clone ( ) . and_then ( |m| Ok ( m. ext . ops . op_count ( ) ) ) ;
1606
+ let ops_count = thresh_res. clone ( ) . map ( |m| m. ext . ops . op_count ( ) ) ;
1607
1607
assert_eq ! (
1608
1608
thresh_res,
1609
1609
Err ( CompilerError :: LimitsExceeded ) ,
You can’t perform that action at this time.
0 commit comments