Make some more things pub(crate) as they don't need exposed now
authorMatt Corallo <git@bluematt.me>
Fri, 20 Jul 2018 02:54:20 +0000 (22:54 -0400)
committerMatt Corallo <git@bluematt.me>
Fri, 20 Jul 2018 02:54:45 +0000 (22:54 -0400)
src/ln/mod.rs
src/util/mod.rs

index 7cd4272e13c1013e5e4abe1d38380aa0bd4e76dd..add8b4df1aa2e722dbac5ce577a840c74d2ff5a0 100644 (file)
@@ -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"))]
index a39d288488d0a18e984296e106e358dedbab82cf..008a9e1d7e1e0649b4fe07d92f1f2e142751adcc 100644 (file)
@@ -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;