Skip to content

Commit

Permalink
blockdata: constants: Use wildcard import in unit tests
Browse files Browse the repository at this point in the history
Import with wildcard is applicable in unit tests, use it.
  • Loading branch information
tcharding committed May 19, 2022
1 parent 26cad70 commit bf05f1a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/blockdata/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit bf05f1a

Please sign in to comment.