Skip to content

Commit bf05f1a

Browse files
committed
blockdata: constants: Use wildcard import in unit tests
Import with wildcard is applicable in unit tests, use it.
1 parent 26cad70 commit bf05f1a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/blockdata/constants.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,10 @@ pub fn genesis_block(network: Network) -> Block {
179179
#[cfg(test)]
180180
mod test {
181181
use core::default::Default;
182+
use super::*;
182183
use crate::hashes::hex::FromHex;
183-
184184
use crate::network::constants::Network;
185185
use crate::consensus::encode::serialize;
186-
use crate::blockdata::constants::{genesis_block, bitcoin_genesis_tx};
187-
use crate::blockdata::constants::{MAX_SEQUENCE, COIN_VALUE};
188186

189187
#[test]
190188
fn bitcoin_genesis_first_transaction() {

0 commit comments

Comments
 (0)