Skip to content

Commit ef13e4e

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 ef13e4e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lightning-invoice/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ 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),
9597
ParseAmountError(ParseIntError),
9698
MalformedSignature(bitcoin::secp256k1::Error),
9799
BadPrefix,

lightning/src/offers/parse.rs

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

0 commit comments

Comments
 (0)