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:
Andrew Poelstra 2024-08-22 16:55:12 +00:00
parent 30f6bd43a4
commit d04b6aabe5
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
2 changed files with 3 additions and 3 deletions

View File

@ -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};

View File

@ -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)]