]> git.bitcoin.ninja Git - rust-lightning/commit
No-export `&self` methods on non-cloneable enum(s) 2022-12-113-bindings-upstream
authorMatt Corallo <git@bluematt.me>
Fri, 23 Dec 2022 20:44:24 +0000 (20:44 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 25 Dec 2022 00:58:19 +0000 (00:58 +0000)
commitf00bc4d71399ca57caea6827dfdbd8e45d1483df
tree701ccfbdfe30b3c0d880b1e0955c879d893d9fcb
parent9449d042b985553e6b06761d4a64df16f8bd12ad
No-export `&self` methods on non-cloneable enum(s)

Specifically, `OnionMessageContents` is a non-cloneable enum, which
isn't stored opaque so we cannot call `&self` methods on it.
Because its methods aren't critical to the API for now, we simply
no-export them rather than trying to work out an alternative
approach.
lightning/src/onion_message/packet.rs