From: Matt Corallo Date: Wed, 19 Jul 2023 20:02:10 +0000 (+0000) Subject: No-export un-exportable types in BOLT12 module X-Git-Tag: v0.0.116~3^2~5 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=6d62d5d021ae877eab27a78a3628e71be211a028;p=rust-lightning No-export un-exportable types in BOLT12 module We missed one method that now cannot be bindings exported - the `payment_paths` method, as it returns a slice of objects, which cannot be supported in bindings. --- diff --git a/lightning/src/offers/invoice.rs b/lightning/src/offers/invoice.rs index 279e31dd6..c3d4500aa 100644 --- a/lightning/src/offers/invoice.rs +++ b/lightning/src/offers/invoice.rs @@ -475,6 +475,9 @@ impl Bolt12Invoice { /// /// Blinded paths provide recipient privacy by obfuscating its node id. Note, however, that this /// privacy is lost if a public node id is used for [`Bolt12Invoice::signing_pubkey`]. + /// + /// This is not exported to bindings users as slices with non-reference types cannot be ABI + /// matched in another language. pub fn payment_paths(&self) -> &[(BlindedPayInfo, BlindedPath)] { &self.contents.fields().payment_paths[..] }