Skip to content

Commit 83643d8

Browse files
committed
Error cleanup (GenericBech32Error not needed)
1 parent 6a77736 commit 83643d8

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

lightning-invoice/src/de.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -733,9 +733,6 @@ impl Display for Bolt11ParseError {
733733
Bolt11ParseError::Bech32Error(ref e) => {
734734
write!(f, "Invalid bech32: {}", e)
735735
}
736-
Bolt11ParseError::GenericBech32Error => {
737-
write!(f, "Invalid bech32")
738-
}
739736
Bolt11ParseError::ParseAmountError(ref e) => {
740737
write!(f, "Invalid amount in hrp ({})", e)
741738
}

lightning-invoice/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ pub use crate::ser::Base32Iterable;
8989
#[derive(PartialEq, Eq, Debug, Clone)]
9090
pub enum Bolt11ParseError {
9191
Bech32Error(CheckedHrpstringError),
92-
GenericBech32Error,
9392
ParseAmountError(ParseIntError),
9493
MalformedSignature(bitcoin::secp256k1::Error),
9594
BadPrefix,

0 commit comments

Comments
 (0)