@@ -46,14 +46,20 @@ impl fmt::Display for LdkLiteError {
46
46
match * self {
47
47
LdkLiteError :: AlreadyRunning => write ! ( f, "LDKLite is already running." ) ,
48
48
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
+ }
50
52
LdkLiteError :: ConnectionFailed => write ! ( f, "network connection closed" ) ,
51
53
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
+ }
53
57
LdkLiteError :: LdkDecode ( ref e) => write ! ( f, "LDK decode error: {}" , e) ,
54
58
LdkLiteError :: LdkApi ( ref e) => write ! ( f, "LDK API error: {:?}" , e) ,
55
59
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
+ }
57
63
LdkLiteError :: Bdk ( ref e) => write ! ( f, "BDK error: {}" , e) ,
58
64
LdkLiteError :: Esplora ( ref e) => write ! ( f, "Esplora error: {}" , e) ,
59
65
LdkLiteError :: Bip32 ( ref e) => write ! ( f, "Bitcoin error: {}" , e) ,
0 commit comments