No-export `&self` methods on non-cloneable enum(s)
authorMatt Corallo <git@bluematt.me>
Fri, 23 Dec 2022 20:44:24 +0000 (20:44 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 3 Jan 2023 22:09:15 +0000 (22:09 +0000)
commitbdd5dd21d46e14260674ec122343b0f831619dd0
treec64225a9679b4c0e77ac46b0b2e5e7276ca5fe47
parent916822a1e4d3d04de55b8f0af31726f8fcd7e28f
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