Skip to content

Commit 6017742

Browse files
committed
Mark Bolt11Bech32 as bindings-no-export as its unconstructable
We don't expect anyone to access `Bolt11Bech32` directly in most use-cases, and the bindings don't support mapping an enum that cannot be constructed (not to mention there would be no point), so we mark it as no-export in bindings builds.
1 parent 4560d71 commit 6017742

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning-invoice/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ pub const MAX_LENGTH: usize = 7089;
162162

163163
/// The [`bech32::Bech32`] checksum algorithm, with extended max length suitable
164164
/// for BOLT11 invoices.
165+
///
166+
/// This is not exported to bindings users as it generally shouldn't be used directly publicly
167+
/// anyway.
165168
pub enum Bolt11Bech32 {}
166169

167170
impl Checksum for Bolt11Bech32 {

0 commit comments

Comments
 (0)