Skip to content

Commit 8890512

Browse files
committed
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.
1 parent 3dcdb14 commit 8890512

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
#[macro_use]
1414
pub mod functional_test_utils;
1515

16-
pub mod channel_id;
1716
pub mod channelmanager;
1817
pub mod inbound_payment;
1918
pub mod msgs;
2019
pub mod peer_handler;
2120
pub mod chan_utils;
2221
pub mod features;
2322
pub mod script;
23+
mod channel_id;
2424

2525
#[cfg(fuzzing)]
2626
pub mod peer_channel_encryptor;
@@ -33,7 +33,7 @@ pub mod channel;
3333
pub(crate) mod channel;
3434

3535
// Re-export ChannelId
36-
pub use self::channel_id::ChannelId;
36+
pub use channel_id::ChannelId;
3737

3838
pub(crate) mod onion_utils;
3939
mod outbound_payment;

0 commit comments

Comments
 (0)