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`.
This commit is contained in:
parent
80e0fb7673
commit
7307363c2e
|
@ -23,7 +23,7 @@ use prelude::*;
|
||||||
|
|
||||||
use core::default::Default;
|
use core::default::Default;
|
||||||
|
|
||||||
use hashes::hex::{HexIterator, Error as HexError};
|
use hashes::hex::{self, HexIterator};
|
||||||
use hashes::sha256d;
|
use hashes::sha256d;
|
||||||
use blockdata::opcodes;
|
use blockdata::opcodes;
|
||||||
use blockdata::script;
|
use blockdata::script;
|
||||||
|
@ -99,7 +99,7 @@ fn bitcoin_genesis_tx() -> Transaction {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Outputs
|
// Outputs
|
||||||
let script_bytes: Result<Vec<u8>, HexError> =
|
let script_bytes: Result<Vec<u8>, hex::Error> =
|
||||||
HexIterator::new("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f").unwrap()
|
HexIterator::new("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f").unwrap()
|
||||||
.collect();
|
.collect();
|
||||||
let out_script = script::Builder::new()
|
let out_script = script::Builder::new()
|
||||||
|
|
Loading…
Reference in New Issue