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>
Mon, 6 Mar 2023 03:02:50 +0000 (03:02 +0000)
commitb3af216c1444562a8393024db77eacc1fbb9adba
tree738b87e7ccbe385bbc3b927fcca9796d4ad37f31
parentb8ef84dda9862b08b7a9fd62402e314d28edde1b
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