]> git.bitcoin.ninja Git - rust-lightning/commit
[bindings] No-export `RouteHopCandidate` lifetime'd fields
authorMatt Corallo <git@bluematt.me>
Tue, 23 Jan 2024 01:16:46 +0000 (01:16 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 22 Apr 2024 21:57:48 +0000 (21:57 +0000)
commit10434988642f33d9a44c44a5ffcdcb1fbfe58361
treed3b62706ab0e55a49327542c2746d959536f463e
parent54ee8b4c5f2577451672d04487c8454521d231dc
[bindings] No-export `RouteHopCandidate` lifetime'd fields

The bindings cannot express lifetimes, so exposing any field which
is a reference (and not `clone`-able, at least for garbage
collected language bindings) is unsafe for those expecting a
high-level interface.

Thus, we simply no-export the `RouteHopCandidate` inner struct
fields which are references (there are relevant accessors for them
anyway).
lightning/src/routing/router.rs