]> 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 09:23:26 +0000 (09:23 +0000)
commit4910c7cffee4ce35de44c0bef361c2d822daacde
treedbd6a4085f5d3f2cb31756346245f5c5718da2b1
parentdc28f9bb88735152260c4c96ae23f98cef32c979
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