]> git.bitcoin.ninja Git - rust-lightning/commit
Swap `Vec<&RouteHop>` parameters for slices
authorMatt Corallo <git@bluematt.me>
Sun, 18 Sep 2022 13:34:39 +0000 (13:34 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 19 Sep 2022 15:22:07 +0000 (15:22 +0000)
commiteebf05aef31a7de12559f406a7d03745552d98c1
treeea872e5867c4e4c3a66d2f20b500ea6a8ef52bf2
parent23f5605780122f7624fb9138c469422f8b598e87
Swap `Vec<&RouteHop>` parameters for slices

In c353c3ed7c40e689a3b9fb6730c6dabbd3c92cc5, new scorer-updating
methods were added to the `Router` object, however they were
passed as a `Vec` of references. We use the list-of-references
pattern to make bindings simpler (by not requiring allocations per
entry), however there's no reason prefer to passing a `Vec` over
a slice, given the `Vec` doesn't hold ownership of the objects
anyway.
lightning-invoice/src/payment.rs
lightning-invoice/src/utils.rs