]> git.bitcoin.ninja Git - rust-lightning/commit
[bindings] Drop the lifetime bound on `Record` for bindings builds
authorMatt Corallo <git@bluematt.me>
Wed, 20 Dec 2023 05:17:43 +0000 (05:17 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 23 Jan 2024 05:32:00 +0000 (05:32 +0000)
commit8b5cbfb03f6d09c808275b162b1106f5adbcd013
tree783c2fce41f11e0f3ebb2fcbbef59d124beb86f9
parent4bab9c8393345805ef36367cdb10a3a569f365fc
[bindings] Drop the lifetime bound on `Record` for bindings builds

Because log `Record`s are now being passed by ownership to `log`,
the bindings get quite annoyed that there's a lifetime hanging
around. We already don't use this lifetime in bindings (the
`FormatArgs` is converted to a string and stored on the heap), so
we can just drop the lifetime, even though it requires some
macro'ing of the struct definition to do so.
lightning/src/util/logger.rs