diff --git a/src/error.rs b/src/error.rs index 4200e68d6..e3b34613a 100644 --- a/src/error.rs +++ b/src/error.rs @@ -46,14 +46,20 @@ impl fmt::Display for LdkLiteError { match *self { LdkLiteError::AlreadyRunning => write!(f, "LDKLite is already running."), LdkLiteError::NotRunning => write!(f, "LDKLite is not running."), - LdkLiteError::FundingTxCreationFailed => write!(f, "the funding transaction could not be created"), + LdkLiteError::FundingTxCreationFailed => { + write!(f, "the funding transaction could not be created") + } LdkLiteError::ConnectionFailed => write!(f, "network connection closed"), LdkLiteError::NonUniquePaymentHash => write!(f, "an invoice must not get payed twice."), - LdkLiteError::PeerInfoParse(ref e) => write!(f, "given peer info could not be parsed: {}", e), + LdkLiteError::PeerInfoParse(ref e) => { + write!(f, "given peer info could not be parsed: {}", e) + } LdkLiteError::LdkDecode(ref e) => write!(f, "LDK decode error: {}", e), LdkLiteError::LdkApi(ref e) => write!(f, "LDK API error: {:?}", e), LdkLiteError::LdkPayment(ref e) => write!(f, "LDK payment error: {:?}", e), - LdkLiteError::LdkInvoiceCreation(ref e) => write!(f, "LDK invoice sign or creation error: {:?}", e), + LdkLiteError::LdkInvoiceCreation(ref e) => { + write!(f, "LDK invoice sign or creation error: {:?}", e) + } LdkLiteError::Bdk(ref e) => write!(f, "BDK error: {}", e), LdkLiteError::Esplora(ref e) => write!(f, "Esplora error: {}", e), LdkLiteError::Bip32(ref e) => write!(f, "Bitcoin error: {}", e),