bitcoin: add a couple missing prelude imports
These were accidentally removed in #2892 and not noticed because of gaps in all of our testing infrastructure. These gaps have been since fixed.
This commit is contained in:
parent
30f6bd43a4
commit
d04b6aabe5
|
@ -12,7 +12,7 @@ use io::{BufRead, Write};
|
|||
use crate::consensus::encode::{Error, MAX_VEC_SIZE};
|
||||
use crate::consensus::{Decodable, Encodable, WriteExt};
|
||||
use crate::crypto::ecdsa;
|
||||
use crate::prelude::Vec;
|
||||
use crate::prelude::{Vec, String};
|
||||
#[cfg(doc)]
|
||||
use crate::script::ScriptExt as _;
|
||||
use crate::taproot::{self, TAPROOT_ANNEX_PREFIX};
|
||||
|
|
|
@ -25,7 +25,7 @@ pub mod btreemap_byte_values {
|
|||
|
||||
use hex::FromHex;
|
||||
|
||||
use crate::prelude::BTreeMap;
|
||||
use crate::prelude::{BTreeMap, Vec};
|
||||
|
||||
pub fn serialize<S, T>(v: &BTreeMap<T, Vec<u8>>, s: S) -> Result<S::Ok, S::Error>
|
||||
where
|
||||
|
@ -162,7 +162,7 @@ pub mod btreemap_as_seq_byte_values {
|
|||
|
||||
// NOTE: This module can be exactly copied to use with HashMap.
|
||||
|
||||
use crate::prelude::BTreeMap;
|
||||
use crate::prelude::{BTreeMap, Vec};
|
||||
|
||||
/// A custom key-value pair type that serialized the bytes as hex.
|
||||
#[derive(Debug, Deserialize)]
|
||||
|
|
Loading…
Reference in New Issue