Remove some unused trait imports
This commit is contained in:
parent
30904b67a7
commit
35832e3da0
|
@ -1,7 +1,7 @@
|
|||
|
||||
[package]
|
||||
name = "bitcoin"
|
||||
version = "0.5.8"
|
||||
version = "0.5.9"
|
||||
authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>"]
|
||||
license = "CC0-1.0"
|
||||
homepage = "https://github.com/apoelstra/rust-bitcoin/"
|
||||
|
|
|
@ -26,7 +26,7 @@ use util;
|
|||
use util::Error::{SpvBadTarget, SpvBadProofOfWork};
|
||||
use util::hash::Sha256dHash;
|
||||
use util::uint::Uint256;
|
||||
use network::encodable::{ConsensusEncodable, VarInt};
|
||||
use network::encodable::VarInt;
|
||||
use network::serialize::BitcoinHash;
|
||||
use blockdata::transaction::Transaction;
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@ use serde;
|
|||
|
||||
use util::hash::Sha256dHash;
|
||||
use blockdata::script::{self, Script, ScriptTrace};
|
||||
use network::encodable::ConsensusEncodable;
|
||||
use network::serialize::BitcoinHash;
|
||||
|
||||
/// A reference to a transaction output
|
||||
|
|
|
@ -19,7 +19,7 @@ use std::char::from_digit;
|
|||
use std::cmp::min;
|
||||
use std::default::Default;
|
||||
use std::error;
|
||||
use std::fmt::{self, Write};
|
||||
use std::fmt;
|
||||
use std::io::Cursor;
|
||||
use std::mem;
|
||||
use serde;
|
||||
|
@ -249,8 +249,6 @@ impl serde::Deserialize for Sha256dHash {
|
|||
fn deserialize<D>(d: &mut D) -> Result<Sha256dHash, D::Error>
|
||||
where D: serde::Deserializer
|
||||
{
|
||||
use serialize::hex::FromHex;
|
||||
|
||||
struct Sha256dHashVisitor;
|
||||
impl serde::de::Visitor for Sha256dHashVisitor {
|
||||
type Value = Sha256dHash;
|
||||
|
|
|
@ -321,7 +321,6 @@ macro_rules! construct_uint {
|
|||
impl<S: ::network::serialize::SimpleEncoder> ::network::encodable::ConsensusEncodable<S> for $name {
|
||||
#[inline]
|
||||
fn consensus_encode(&self, s: &mut S) -> Result<(), S::Error> {
|
||||
use network::encodable::ConsensusEncodable;
|
||||
let &$name(ref data) = self;
|
||||
for word in data.iter() { try!(word.consensus_encode(s)); }
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in New Issue