]> git.bitcoin.ninja Git - rust-lightning/commit
Use slices to references not slices of concrete objects in pub API
authorMatt Corallo <git@bluematt.me>
Thu, 23 Jul 2020 20:10:29 +0000 (16:10 -0400)
committerMatt Corallo <git@bluematt.me>
Tue, 25 Aug 2020 21:09:51 +0000 (17:09 -0400)
commitde8c5dc76dbfc64071763ddf2376b09a9f65479b
treeae9e09673527d4e29fd19f75d7f940337390c286
parentf65765872e70bb273c7a73fc1f6bdc59fec3646d
Use slices to references not slices of concrete objects in pub API

Because the C bindings maps objects into new structs which contain
only a pointer to the underlying (immovable) Rust type, it cannot
create a list of Rust types which are contiguous in memory. Thus,
in order to allow C clients to call certain Rust functions, we have
to use &[&Type] not &[Type]. This commit fixes this issue for the
get_route function.
fuzz/src/router.rs
lightning/src/ln/functional_tests.rs
lightning/src/routing/router.rs