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.
This commit is contained in:
parent
4ff5d6886b
commit
3fdc574851
|
@ -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<u8>` so that it can be modified.
|
||||
///
|
||||
|
@ -216,6 +221,7 @@ impl ScriptBuf {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> core::iter::FromIterator<Instruction<'a>> for ScriptBuf {
|
||||
fn from_iter<T>(iter: T) -> Self
|
||||
|
|
Loading…
Reference in New Issue