From f9435a673a2aa8a40bb0e659ccd1f172926cd84e Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Wed, 14 Sep 2022 13:43:42 +0200 Subject: [PATCH] f `cargo fmt` --- src/error.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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),