From 7098ca3375bb02ad6e0eb08a121193782b26e92e Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Thu, 19 Jul 2018 22:54:20 -0400 Subject: [PATCH] Make some more things pub(crate) as they don't need exposed now --- src/ln/mod.rs | 6 +++++- src/util/mod.rs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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; -- 2.39.5