From 265c0836747d560f6b193be261ffbb3cec4d3706 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sat, 24 Feb 2018 19:59:59 -0500 Subject: [PATCH] Dont expose things that are purely internal-only --- src/util/byte_utils.rs | 2 -- src/util/mod.rs | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/util/byte_utils.rs b/src/util/byte_utils.rs index 8779723fc..74a01196f 100644 --- a/src/util/byte_utils.rs +++ b/src/util/byte_utils.rs @@ -1,5 +1,3 @@ -//TODO: Dont expose - #[inline] pub fn slice_to_be16(v: &[u8]) -> u16 { ((v[0] as u16) << 8*1) | diff --git a/src/util/mod.rs b/src/util/mod.rs index c4fdff546..0e92a2b27 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -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)] -- 2.39.5