Use std's `from_be_bytes` rather than our `to_int_be` for int conv
authorMatt Corallo <git@bluematt.me>
Wed, 13 Mar 2024 19:16:20 +0000 (19:16 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 13 Mar 2024 19:16:20 +0000 (19:16 +0000)
commitc89b96a4b9dec12b9715bf3c30badaf102116e30
tree8066b2b5a345a126e5c8c9f99ef5f44f9803736f
parentf5ee8c23a1a52bc51c00eb8a62b0b5226acee80b
Use std's `from_be_bytes` rather than our `to_int_be` for int conv

`lightning-invoice` was mostly written before std's `from_be_bytes`
was stabilized, so used its own `to_int_be` utility to do int
conversions from `u8` arrays. Now that the std option has been
stable for quite some time, we should juse use it instead.
lightning-invoice/src/de.rs
lightning-invoice/src/lib.rs