diff --git a/bitcoin/src/blockdata/script/owned.rs b/bitcoin/src/blockdata/script/owned.rs index abfcc2529..bf1e59a6b 100644 --- a/bitcoin/src/blockdata/script/owned.rs +++ b/bitcoin/src/blockdata/script/owned.rs @@ -89,6 +89,8 @@ impl ScriptBuf { } } +mod tmp_pub { + use super::*; impl ScriptBuf { /// Creates a new script builder pub fn builder() -> Builder { Builder::new() } @@ -151,7 +153,10 @@ impl ScriptBuf { /// multiple times. pub fn scan_and_push_verify(&mut self) { self.push_verify(self.last_opcode()); } } +} +mod tmp_priv { + use super::*; impl ScriptBuf { /// Pretends to convert `&mut ScriptBuf` to `&mut Vec` so that it can be modified. /// @@ -216,6 +221,7 @@ impl ScriptBuf { } } } +} impl<'a> core::iter::FromIterator> for ScriptBuf { fn from_iter(iter: T) -> Self