From: Matt Corallo Date: Sun, 25 Feb 2018 00:59:59 +0000 (-0500) Subject: Dont expose things that are purely internal-only X-Git-Tag: v0.0.12~427 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=265c0836747d560f6b193be261ffbb3cec4d3706;p=rust-lightning Dont expose things that are purely internal-only --- 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)]