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>
Tue, 3 Oct 2023 23:22:29 +0000 (23:22 +0000)
commitbe634a9811036d73b748ccd1cca25a274f3888b0
tree8eb45f5538f7c7877d031143ee8c87a8fc1c59ab
parent1aff76f0d391f335bf4369647e0820bcba293d3e
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