Skip to content

Commit

Permalink
Error cleanup (GenericBech32Error not needed)
Browse files Browse the repository at this point in the history
  • Loading branch information
optout21 committed Aug 30, 2024
1 parent 045b5b8 commit b678587
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions lightning-invoice/src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -733,9 +733,6 @@ impl Display for Bolt11ParseError {
Bolt11ParseError::Bech32Error(ref e) => {
write!(f, "Invalid bech32: {}", e)
}
Bolt11ParseError::GenericBech32Error => {
write!(f, "Invalid bech32")
}
Bolt11ParseError::ParseAmountError(ref e) => {
write!(f, "Invalid amount in hrp ({})", e)
}
Expand Down
1 change: 0 additions & 1 deletion lightning-invoice/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ pub use crate::ser::Base32Iterable;
#[derive(PartialEq, Eq, Debug, Clone)]
pub enum Bolt11ParseError {
Bech32Error(CheckedHrpstringError),
GenericBech32Error,
ParseAmountError(ParseIntError),
MalformedSignature(bitcoin::secp256k1::Error),
BadPrefix,
Expand Down

0 comments on commit b678587

Please sign in to comment.