From 21b2f929c59f68212b9645f1d199d2aa54d101fb Mon Sep 17 00:00:00 2001 From: Max Giraldo Date: Fri, 1 Jan 2021 06:37:45 -0800 Subject: [PATCH] refactor(blockdata/transaction): use nested paths Instead of using a wildcard path for the `hash_types` module, be explicit about what types we're using by using nested paths. There are many benefits to this, including not polluting the namespace and clearly demarcating the types' location. --- src/blockdata/transaction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blockdata/transaction.rs b/src/blockdata/transaction.rs index 55d4cd58..0af5a172 100644 --- a/src/blockdata/transaction.rs +++ b/src/blockdata/transaction.rs @@ -34,7 +34,7 @@ use blockdata::constants::WITNESS_SCALE_FACTOR; #[cfg(feature="bitcoinconsensus")] use blockdata::script; use blockdata::script::Script; use consensus::{encode, Decodable, Encodable}; -use hash_types::*; +use hash_types::{SigHash, Txid, Wtxid}; use VarInt; /// A reference to a transaction output