From 3625d74e8bf564842230b008b1428d1e274a919c Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Sun, 18 Aug 2024 07:24:55 +1000 Subject: [PATCH] Make pub in crate functions pub crate In preparation for adding a private extension trait change the scope to `pub(crate)` because the more specific `pub(in ...)` is not currently supported by our `define_extension_trait` macro. --- bitcoin/src/blockdata/script/owned.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitcoin/src/blockdata/script/owned.rs b/bitcoin/src/blockdata/script/owned.rs index 43f645e40..2679d5ae2 100644 --- a/bitcoin/src/blockdata/script/owned.rs +++ b/bitcoin/src/blockdata/script/owned.rs @@ -144,7 +144,7 @@ impl ScriptBuf { } /// Computes the sum of `len` and the length of an appropriate push opcode. - pub(in crate::blockdata::script) fn reserved_len_for_slice(len: usize) -> usize { + pub(crate) fn reserved_len_for_slice(len: usize) -> usize { len + match len { 0..=0x4b => 1, 0x4c..=0xff => 2, @@ -195,7 +195,7 @@ impl ScriptBuf { /// alternative. /// /// See the public fn [`Self::scan_and_push_verify`] to learn more. - pub(in crate::blockdata::script) fn push_verify(&mut self, last_opcode: Option) { + pub(crate) fn push_verify(&mut self, last_opcode: Option) { match opcode_to_verify(last_opcode) { Some(opcode) => { self.0.pop();