Make push_slice_no_opt pub(crate)
In preparation for adding script buf extension make the `push_slice_no_opt` have the same scope as the other private functions, this will be the scope of the private extension trait.
This commit is contained in:
parent
1001a33f19
commit
c81fb93359
|
@ -154,7 +154,7 @@ impl ScriptBuf {
|
|||
|
||||
impl ScriptBuf {
|
||||
/// Pushes the slice without reserving
|
||||
fn push_slice_no_opt(&mut self, data: &PushBytes) {
|
||||
pub(crate) fn push_slice_no_opt(&mut self, data: &PushBytes) {
|
||||
// Start with a PUSH opcode
|
||||
match data.len().to_u64() {
|
||||
n if n < opcodes::Ordinary::OP_PUSHDATA1 as u64 => {
|
||||
|
|
Loading…
Reference in New Issue