@@ -46,14 +46,20 @@ impl fmt::Display for LdkLiteError {
4646 match * self {
4747 LdkLiteError :: AlreadyRunning => write ! ( f, "LDKLite is already running." ) ,
4848 LdkLiteError :: NotRunning => write ! ( f, "LDKLite is not running." ) ,
49- LdkLiteError :: FundingTxCreationFailed => write ! ( f, "the funding transaction could not be created" ) ,
49+ LdkLiteError :: FundingTxCreationFailed => {
50+ write ! ( f, "the funding transaction could not be created" )
51+ }
5052 LdkLiteError :: ConnectionFailed => write ! ( f, "network connection closed" ) ,
5153 LdkLiteError :: NonUniquePaymentHash => write ! ( f, "an invoice must not get payed twice." ) ,
52- LdkLiteError :: PeerInfoParse ( ref e) => write ! ( f, "given peer info could not be parsed: {}" , e) ,
54+ LdkLiteError :: PeerInfoParse ( ref e) => {
55+ write ! ( f, "given peer info could not be parsed: {}" , e)
56+ }
5357 LdkLiteError :: LdkDecode ( ref e) => write ! ( f, "LDK decode error: {}" , e) ,
5458 LdkLiteError :: LdkApi ( ref e) => write ! ( f, "LDK API error: {:?}" , e) ,
5559 LdkLiteError :: LdkPayment ( ref e) => write ! ( f, "LDK payment error: {:?}" , e) ,
56- LdkLiteError :: LdkInvoiceCreation ( ref e) => write ! ( f, "LDK invoice sign or creation error: {:?}" , e) ,
60+ LdkLiteError :: LdkInvoiceCreation ( ref e) => {
61+ write ! ( f, "LDK invoice sign or creation error: {:?}" , e)
62+ }
5763 LdkLiteError :: Bdk ( ref e) => write ! ( f, "BDK error: {}" , e) ,
5864 LdkLiteError :: Esplora ( ref e) => write ! ( f, "Esplora error: {}" , e) ,
5965 LdkLiteError :: Bip32 ( ref e) => write ! ( f, "Bitcoin error: {}" , e) ,
0 commit comments