Skip to content

Commit 16aabce

Browse files
committed
Mark CheckedHrpstringError instances as no-export
The details of these errors aren't particularly relevant, and its not worth the effort of exporting them, so we just mark them no-export here.
1 parent cd25ef1 commit 16aabce

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

lightning-invoice/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ use crate::ser::Base32Iterable;
9191
#[allow(missing_docs)]
9292
#[derive(PartialEq, Eq, Debug, Clone)]
9393
pub enum Bolt11ParseError {
94-
Bech32Error(CheckedHrpstringError),
94+
Bech32Error(
95+
/// This is not exported to bindings users as the details don't matter much
96+
CheckedHrpstringError,
97+
),
9598
ParseAmountError(ParseIntError),
9699
MalformedSignature(bitcoin::secp256k1::Error),
97100
BadPrefix,

lightning/src/offers/parse.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,10 @@ pub enum Bolt12ParseError {
142142
/// being parsed.
143143
InvalidBech32Hrp,
144144
/// The string could not be bech32 decoded.
145-
Bech32(CheckedHrpstringError),
145+
Bech32(
146+
/// This is not exported to bindings users as the details don't matter much
147+
CheckedHrpstringError,
148+
),
146149
/// The bech32 decoded string could not be decoded as the expected message type.
147150
Decode(DecodeError),
148151
/// The parsed message has invalid semantics.

0 commit comments

Comments
 (0)