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.
This commit is contained in:
parent
b368384317
commit
3625d74e8b
|
@ -144,7 +144,7 @@ impl ScriptBuf {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Computes the sum of `len` and the length of an appropriate push opcode.
|
/// 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 {
|
len + match len {
|
||||||
0..=0x4b => 1,
|
0..=0x4b => 1,
|
||||||
0x4c..=0xff => 2,
|
0x4c..=0xff => 2,
|
||||||
|
@ -195,7 +195,7 @@ impl ScriptBuf {
|
||||||
/// alternative.
|
/// alternative.
|
||||||
///
|
///
|
||||||
/// See the public fn [`Self::scan_and_push_verify`] to learn more.
|
/// 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<Opcode>) {
|
pub(crate) fn push_verify(&mut self, last_opcode: Option<Opcode>) {
|
||||||
match opcode_to_verify(last_opcode) {
|
match opcode_to_verify(last_opcode) {
|
||||||
Some(opcode) => {
|
Some(opcode) => {
|
||||||
self.0.pop();
|
self.0.pop();
|
||||||
|
|
Loading…
Reference in New Issue