]> git.bitcoin.ninja Git - rust-lightning/commit
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, 22 Apr 2024 21:57:48 +0000 (21:57 +0000)
commitb64dc67896b51c9c5ec19de38c5a553a48a620e6
tree78eb0ef8ed0e046c576bbe9a2af9d4577fcd413e
parentcb8cd4e2f143cab4d4bd44d9281bd2ad2718cbbe
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