Avoid enums containing references with lifetimes
authorMatt Corallo <git@bluematt.me>
Sun, 5 Mar 2023 20:38:42 +0000 (20:38 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 22 Jul 2023 01:34:39 +0000 (01:34 +0000)
commit897df1c38cb4b4b3f5f5364d7905734651c4b0bb
tree56dc8b194d9d53d8644b3ebed756dde9276d9725
parentcd91c71f12e20e71bfdcc822fb829a3f68201ad3
Avoid enums containing references with lifetimes

Having struct fields with references to other structs is tough in
our bindings logic, but even worse if the fields are in an enum.
Its simplest to just take the clone penalty here.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/msgs.rs
lightning/src/ln/peer_handler.rs
lightning/src/ln/priv_short_conf_tests.rs