Fix unused imports

This commit is contained in:
Shing Him Ng 2024-10-10 23:35:03 -05:00
parent fe62d94ff7
commit a250c8eee4
2 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,7 @@
//!
//! This module provides the structures and functions needed to support transactions.
use core::{cmp, fmt, str};
use core::{cmp, fmt};
#[cfg(feature = "arbitrary")]
use arbitrary::{Arbitrary, Unstructured};
@ -1339,6 +1339,8 @@ impl<'a> Arbitrary<'a> for Transaction {
#[cfg(test)]
mod tests {
use core::str;
use hex::{test_hex_unwrap as hex, FromHex};
#[cfg(feature = "serde")]
use internals::serde_round_trip;

View File

@ -15,6 +15,7 @@ use core::fmt;
#[cfg(feature = "arbitrary")]
use arbitrary::{Arbitrary, Unstructured};
use hashes::sha256d;
#[cfg(feature = "alloc")]
use internals::write_err;
#[cfg(feature = "alloc")]
use units::parse;