Do not return a reference to a u64 in rust-lightning-invoices
authorMatt Corallo <git@bluematt.me>
Fri, 23 Apr 2021 00:25:55 +0000 (00:25 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 29 Apr 2021 15:48:16 +0000 (15:48 +0000)
commit236342332ea272d47be1043197a3817d5d0482da
tree27d988e976d5f47ca9ded6c0cd40e28be8efa99e
parent0725098eefd329f128a9ad6058fd431d0f3b5d75
Do not return a reference to a u64 in rust-lightning-invoices

There is generally never a reason to return a non-mutable reference
to a u64 vs just copying it, same applies here. It makes the API
slightly less consistent, but is easier to map in bindings and just
makes more sense.
lightning-invoice/src/lib.rs