From: Elias Rohrer Date: Tue, 12 Sep 2023 11:37:57 +0000 (+0200) Subject: Cleanup `ChannelId` re-export X-Git-Tag: v0.0.117-alpha1~12^2~4 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=88905126aeb2d200c988d2541e32c9c022c3b4da;p=rust-lightning Cleanup `ChannelId` re-export `ChannelId` was weirdly listed in the re-export section of the docs and reachable via multiple paths. Here we opt to make the `channel_id` module private and leave only the `ChannelId` struct itself exposed. --- diff --git a/lightning/src/ln/mod.rs b/lightning/src/ln/mod.rs index bacb9e86c..824550eb3 100644 --- a/lightning/src/ln/mod.rs +++ b/lightning/src/ln/mod.rs @@ -13,7 +13,6 @@ #[macro_use] pub mod functional_test_utils; -pub mod channel_id; pub mod channelmanager; pub mod inbound_payment; pub mod msgs; @@ -21,6 +20,7 @@ pub mod peer_handler; pub mod chan_utils; pub mod features; pub mod script; +mod channel_id; #[cfg(fuzzing)] pub mod peer_channel_encryptor; @@ -33,7 +33,7 @@ pub mod channel; pub(crate) mod channel; // Re-export ChannelId -pub use self::channel_id::ChannelId; +pub use channel_id::ChannelId; pub(crate) mod onion_utils; mod outbound_payment;