]> 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>
Tue, 3 Sep 2024 14:00:23 +0000 (14:00 +0000)
commit4ae9bcf4933fe95d8eab44631e82eb92aea8c24e
treea19b84669d3fbbe96ef76d62b9895a83516005fc
parent212e4a5ab6069563ef5d31555d1e2f478fe8af6f
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/offers_tests.rs
lightning/src/ln/peer_handler.rs
lightning/src/ln/priv_short_conf_tests.rs