Skip to content

Commit 3fdc574

Browse files
committed
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.
1 parent 4ff5d68 commit 3fdc574

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bitcoin/src/blockdata/script/owned.rs

+6
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ impl ScriptBuf {
8989
}
9090
}
9191

92+
mod tmp_pub {
93+
use super::*;
9294
impl ScriptBuf {
9395
/// Creates a new script builder
9496
pub fn builder() -> Builder { Builder::new() }
@@ -151,7 +153,10 @@ impl ScriptBuf {
151153
/// multiple times.
152154
pub fn scan_and_push_verify(&mut self) { self.push_verify(self.last_opcode()); }
153155
}
156+
}
154157

158+
mod tmp_priv {
159+
use super::*;
155160
impl ScriptBuf {
156161
/// Pretends to convert `&mut ScriptBuf` to `&mut Vec<u8>` so that it can be modified.
157162
///
@@ -216,6 +221,7 @@ impl ScriptBuf {
216221
}
217222
}
218223
}
224+
}
219225

220226
impl<'a> core::iter::FromIterator<Instruction<'a>> for ScriptBuf {
221227
fn from_iter<T>(iter: T) -> Self

0 commit comments

Comments
 (0)