diff --git a/bitcoin/src/util/base58.rs b/bitcoin/src/util/base58.rs index f69a5275..890f7208 100644 --- a/bitcoin/src/util/base58.rs +++ b/bitcoin/src/util/base58.rs @@ -73,7 +73,7 @@ struct SmallVec { } impl SmallVec { - pub fn new() -> SmallVec { + fn new() -> SmallVec { SmallVec { len: 0, stack: [T::default(); 100], @@ -81,7 +81,7 @@ impl SmallVec { } } - pub fn push(&mut self, val: T) { + fn push(&mut self, val: T) { if self.len < 100 { self.stack[self.len] = val; self.len += 1; @@ -90,12 +90,12 @@ impl SmallVec { } } - pub fn iter(&self) -> iter::Chain, slice::Iter> { + fn iter(&self) -> iter::Chain, slice::Iter> { // If len<100 then we just append an empty vec self.stack[0..self.len].iter().chain(self.heap.iter()) } - pub fn iter_mut(&mut self) -> iter::Chain, slice::IterMut> { + fn iter_mut(&mut self) -> iter::Chain, slice::IterMut> { // If len<100 then we just append an empty vec self.stack[0..self.len].iter_mut().chain(self.heap.iter_mut()) }