From c81fb933595d707204cff22603c659e62b016793 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Sun, 18 Aug 2024 07:40:01 +1000 Subject: [PATCH] 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. --- bitcoin/src/blockdata/script/owned.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/blockdata/script/owned.rs b/bitcoin/src/blockdata/script/owned.rs index 49613a25d..1bce8a28d 100644 --- a/bitcoin/src/blockdata/script/owned.rs +++ b/bitcoin/src/blockdata/script/owned.rs @@ -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 => {