From 3fdc574851314b6d50f103ac1f499e3fa9e77d49 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Sun, 18 Aug 2024 07:50:06 +1000 Subject: [PATCH] Add temporary script buf modules In order to use the formatter to mechanically indent code ready for adding two extension traits; add two temporary modules. --- bitcoin/src/blockdata/script/owned.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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