Skip to content

Commit de9d85d

Browse files
committed
Use qualified path instead of alias
It is more typical in this repo to use `module::Error` instead of a type alias when importing. Use `hex::Error` directly instead of `use hex::Error as HexError`.
1 parent 3ba0429 commit de9d85d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/blockdata/constants.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use prelude::*;
2323

2424
use core::default::Default;
2525

26-
use hashes::hex::{HexIterator, Error as HexError};
26+
use hashes::hex::{self, HexIterator};
2727
use hashes::sha256d;
2828
use blockdata::opcodes;
2929
use blockdata::script;
@@ -99,7 +99,7 @@ fn bitcoin_genesis_tx() -> Transaction {
9999
});
100100

101101
// Outputs
102-
let script_bytes: Result<Vec<u8>, HexError> =
102+
let script_bytes: Result<Vec<u8>, hex::Error> =
103103
HexIterator::new("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f").unwrap()
104104
.collect();
105105
let out_script = script::Builder::new()

0 commit comments

Comments
 (0)