@@ -1447,7 +1447,7 @@ mod tests {
14471447 . extract_tx_with_fee_rate_limit ( FeeRate :: from_sat_per_vb ( 1 ) )
14481448 . map_err ( |e| match e {
14491449 ExtractTxError :: AbsurdFeeRate { fee_rate, .. } => fee_rate,
1450- _ => panic ! ( "" ) ,
1450+ other => panic ! ( "expected AbsurdFeeRate error, got {other:?} " ) ,
14511451 } )
14521452 . unwrap_err ( ) ;
14531453
@@ -1459,14 +1459,14 @@ mod tests {
14591459 assert_eq ! (
14601460 psbt. clone( ) . extract_tx( ) . map_err( |e| match e {
14611461 ExtractTxError :: AbsurdFeeRate { fee_rate, .. } => fee_rate,
1462- _ => panic!( "" ) ,
1462+ other => panic!( "expected AbsurdFeeRate error, got {other:?} " ) ,
14631463 } ) ,
14641464 Err ( error_fee_rate)
14651465 ) ;
14661466 assert_eq ! (
14671467 psbt. clone( ) . extract_tx_fee_rate_limit( ) . map_err( |e| match e {
14681468 ExtractTxError :: AbsurdFeeRate { fee_rate, .. } => fee_rate,
1469- _ => panic!( "" ) ,
1469+ other => panic!( "expected AbsurdFeeRate error, got {other:?} " ) ,
14701470 } ) ,
14711471 Err ( error_fee_rate)
14721472 ) ;
@@ -1480,7 +1480,7 @@ mod tests {
14801480 assert_eq ! (
14811481 psbt_with_amounts( 2076001 , 1000 ) . extract_tx( ) . map_err( |e| match e {
14821482 ExtractTxError :: AbsurdFeeRate { fee_rate, .. } => fee_rate,
1483- _ => panic!( "" ) ,
1483+ other => panic!( "expected AbsurdFeeRate error, got {other:?} " ) ,
14841484 } ) ,
14851485 Err ( FeeRate :: from_sat_per_kwu( 6250003 ) ) // 6250000 is 25k sat/vbyte
14861486 ) ;
0 commit comments