]> git.bitcoin.ninja Git - rust-lightning/commit
Avoid a redundant allocation in `InvoiceError` handling in one case
authorMatt Corallo <git@bluematt.me>
Fri, 20 Oct 2023 17:38:19 +0000 (17:38 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 21 Oct 2023 14:30:13 +0000 (14:30 +0000)
commitd974a07e96199932e98f6c34b8f3e1f151b53500
tree057abbf0b7f682e76acccded2d64fe1753cc644c
parent50c55dcf32466e3ccf17acea50697fc664950deb
Avoid a redundant allocation in `InvoiceError` handling in one case

... by passing an owned `String`, rather than taking an `&str` and
`to_owned()`ing it.
lightning/src/ln/channelmanager.rs
lightning/src/offers/invoice_error.rs