]> git.bitcoin.ninja Git - rust-lightning/commit
Marginally reduce allocations in `lightning-invoice`
authorMatt Corallo <git@bluematt.me>
Thu, 3 Oct 2024 16:53:56 +0000 (16:53 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 3 Oct 2024 17:20:07 +0000 (17:20 +0000)
commitcc72f032dca9a0a203bcc5da2892fc68c46c1420
treeeeec8c04f61d809127fda332f782e9ab4a589d18
parentbc1931bd0b07b980ab3ed7acdff3a7a769b5164c
Marginally reduce allocations in `lightning-invoice`

In aa2f6b47df312f026213d0ceaaff20ffe955c377 we refactored
`lightning-invoice` de/serialization to use the new version of
`bech32`, also reducing some trivial unnecessary allocations when
we did so.

Here we drop a few additional allocations which came up in review.
lightning-invoice/src/de.rs
lightning-invoice/src/ser.rs