Skip to content

Commit

Permalink
f cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Sep 14, 2022
1 parent 720cb28 commit f9435a6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit f9435a6

Please sign in to comment.