From: Matt Corallo Date: Fri, 20 Jul 2018 02:54:20 +0000 (-0400) Subject: Make some more things pub(crate) as they don't need exposed now X-Git-Tag: v0.0.12~384^2~1 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=7098ca3375bb02ad6e0eb08a121193782b26e92e;p=rust-lightning Make some more things pub(crate) as they don't need exposed now --- diff --git a/src/ln/mod.rs b/src/ln/mod.rs index 7cd4272e1..add8b4df1 100644 --- a/src/ln/mod.rs +++ b/src/ln/mod.rs @@ -2,9 +2,13 @@ pub mod channelmanager; pub mod channelmonitor; pub mod msgs; pub mod router; -pub mod peer_channel_encryptor; pub mod peer_handler; +#[cfg(feature = "fuzztarget")] +pub mod peer_channel_encryptor; +#[cfg(not(feature = "fuzztarget"))] +pub(crate) mod peer_channel_encryptor; + #[cfg(feature = "fuzztarget")] pub mod channel; #[cfg(not(feature = "fuzztarget"))] diff --git a/src/util/mod.rs b/src/util/mod.rs index a39d28848..008a9e1d7 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -1,4 +1,3 @@ -pub mod transaction_utils; pub mod events; pub(crate) mod byte_utils; @@ -6,6 +5,7 @@ pub(crate) mod chacha20poly1305rfc; pub(crate) mod internal_traits; pub(crate) mod rng; pub(crate) mod sha2; +pub(crate) mod transaction_utils; #[cfg(feature = "fuzztarget")] pub use self::rng::reset_rng_state;