]> git.bitcoin.ninja Git - rust-lightning/commit
[UPSTREAM] impl `Clone` on unsigned BOLT12 types
authorMatt Corallo <git@bluematt.me>
Mon, 13 May 2024 14:36:01 +0000 (14:36 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 13 May 2024 14:42:59 +0000 (14:42 +0000)
commit0380c65afc2caf3346498fae67e5f302ad2159eb
tree25f9a873655306d0065ce5ee4320971fd05c178d
parent4244f6650ce6a9d756053dbd88f63310c67678a2
[UPSTREAM] impl `Clone` on unsigned BOLT12 types

This is required for bindings as passing types from Rust to GC'd
languages can't map the concept of a type that has a lifetime of
the called function but instead needs to clone for safety.
lightning/src/ln/onion_payment.rs
lightning/src/offers/invoice.rs
lightning/src/offers/invoice_request.rs