Skip to content

Commit c81fb93

Browse files
committed
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.
1 parent 1001a33 commit c81fb93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitcoin/src/blockdata/script/owned.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl ScriptBuf {
154154

155155
impl ScriptBuf {
156156
/// Pushes the slice without reserving
157-
fn push_slice_no_opt(&mut self, data: &PushBytes) {
157+
pub(crate) fn push_slice_no_opt(&mut self, data: &PushBytes) {
158158
// Start with a PUSH opcode
159159
match data.len().to_u64() {
160160
n if n < opcodes::Ordinary::OP_PUSHDATA1 as u64 => {

0 commit comments

Comments
 (0)