]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Dont expose things that are purely internal-only
authorMatt Corallo <git@bluematt.me>
Sun, 25 Feb 2018 00:59:59 +0000 (19:59 -0500)
committerMatt Corallo <git@bluematt.me>
Sun, 25 Feb 2018 00:59:59 +0000 (19:59 -0500)
src/util/byte_utils.rs
src/util/mod.rs

index 8779723fc2226849545b5e41ae5c420736dbcee5..74a01196f943433ec71dc6d8f22bd8cea6d7fd1d 100644 (file)
@@ -1,5 +1,3 @@
-//TODO: Dont expose
-
 #[inline]
 pub fn slice_to_be16(v: &[u8]) -> u16 {
        ((v[0] as u16) << 8*1) |
index c4fdff5469b7f5e54cbfb0578aa8d83c1788f7c2..0e92a2b27e4804bd7ddb14608c75fe1fddbad798 100644 (file)
@@ -1,8 +1,8 @@
-pub mod byte_utils;
 pub mod transaction_utils;
-pub mod chacha20poly1305rfc;
 pub mod events;
 
+pub(crate) mod byte_utils;
+pub(crate) mod chacha20poly1305rfc;
 pub(crate) mod internal_traits;
 
 #[cfg(test)]