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:
Tobin C. Harding 2024-08-18 07:40:01 +10:00
parent 1001a33f19
commit c81fb93359
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 1 deletions

View File

@ -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 => {