Skip to content

Commit 3625d74

Browse files
committed
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.
1 parent b368384 commit 3625d74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bitcoin/src/blockdata/script/owned.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl ScriptBuf {
144144
}
145145

146146
/// Computes the sum of `len` and the length of an appropriate push opcode.
147-
pub(in crate::blockdata::script) fn reserved_len_for_slice(len: usize) -> usize {
147+
pub(crate) fn reserved_len_for_slice(len: usize) -> usize {
148148
len + match len {
149149
0..=0x4b => 1,
150150
0x4c..=0xff => 2,
@@ -195,7 +195,7 @@ impl ScriptBuf {
195195
/// alternative.
196196
///
197197
/// See the public fn [`Self::scan_and_push_verify`] to learn more.
198-
pub(in crate::blockdata::script) fn push_verify(&mut self, last_opcode: Option<Opcode>) {
198+
pub(crate) fn push_verify(&mut self, last_opcode: Option<Opcode>) {
199199
match opcode_to_verify(last_opcode) {
200200
Some(opcode) => {
201201
self.0.pop();

0 commit comments

Comments
 (0)