From cd8f511fcb464e3997d2fe695c0fb8fb2f4afc8c Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Wed, 16 Mar 2022 11:22:18 +1100 Subject: [PATCH] blockdata: constants: Use wildcard import in unit tests Import with wildcard is applicable in unit tests, use it. --- src/blockdata/constants.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/blockdata/constants.rs b/src/blockdata/constants.rs index 1586c7e7..ee806946 100644 --- a/src/blockdata/constants.rs +++ b/src/blockdata/constants.rs @@ -179,12 +179,10 @@ pub fn genesis_block(network: Network) -> Block { #[cfg(test)] mod test { use core::default::Default; + use super::*; use crate::hashes::hex::FromHex; - use crate::network::constants::Network; use crate::consensus::encode::serialize; - use crate::blockdata::constants::{genesis_block, bitcoin_genesis_tx}; - use crate::blockdata::constants::{MAX_SEQUENCE, COIN_VALUE}; #[test] fn bitcoin_genesis_first_transaction() {