Remove some unused trait imports

This commit is contained in:
Andrew Poelstra 2016-05-27 18:36:42 +00:00
parent 30904b67a7
commit 35832e3da0
5 changed files with 3 additions and 7 deletions

View File

@ -1,7 +1,7 @@
[package] [package]
name = "bitcoin" name = "bitcoin"
version = "0.5.8" version = "0.5.9"
authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>"] authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>"]
license = "CC0-1.0" license = "CC0-1.0"
homepage = "https://github.com/apoelstra/rust-bitcoin/" homepage = "https://github.com/apoelstra/rust-bitcoin/"

View File

@ -26,7 +26,7 @@ use util;
use util::Error::{SpvBadTarget, SpvBadProofOfWork}; use util::Error::{SpvBadTarget, SpvBadProofOfWork};
use util::hash::Sha256dHash; use util::hash::Sha256dHash;
use util::uint::Uint256; use util::uint::Uint256;
use network::encodable::{ConsensusEncodable, VarInt}; use network::encodable::VarInt;
use network::serialize::BitcoinHash; use network::serialize::BitcoinHash;
use blockdata::transaction::Transaction; use blockdata::transaction::Transaction;

View File

@ -29,7 +29,6 @@ use serde;
use util::hash::Sha256dHash; use util::hash::Sha256dHash;
use blockdata::script::{self, Script, ScriptTrace}; use blockdata::script::{self, Script, ScriptTrace};
use network::encodable::ConsensusEncodable;
use network::serialize::BitcoinHash; use network::serialize::BitcoinHash;
/// A reference to a transaction output /// A reference to a transaction output

View File

@ -19,7 +19,7 @@ use std::char::from_digit;
use std::cmp::min; use std::cmp::min;
use std::default::Default; use std::default::Default;
use std::error; use std::error;
use std::fmt::{self, Write}; use std::fmt;
use std::io::Cursor; use std::io::Cursor;
use std::mem; use std::mem;
use serde; use serde;
@ -249,8 +249,6 @@ impl serde::Deserialize for Sha256dHash {
fn deserialize<D>(d: &mut D) -> Result<Sha256dHash, D::Error> fn deserialize<D>(d: &mut D) -> Result<Sha256dHash, D::Error>
where D: serde::Deserializer where D: serde::Deserializer
{ {
use serialize::hex::FromHex;
struct Sha256dHashVisitor; struct Sha256dHashVisitor;
impl serde::de::Visitor for Sha256dHashVisitor { impl serde::de::Visitor for Sha256dHashVisitor {
type Value = Sha256dHash; type Value = Sha256dHash;

View File

@ -321,7 +321,6 @@ macro_rules! construct_uint {
impl<S: ::network::serialize::SimpleEncoder> ::network::encodable::ConsensusEncodable<S> for $name { impl<S: ::network::serialize::SimpleEncoder> ::network::encodable::ConsensusEncodable<S> for $name {
#[inline] #[inline]
fn consensus_encode(&self, s: &mut S) -> Result<(), S::Error> { fn consensus_encode(&self, s: &mut S) -> Result<(), S::Error> {
use network::encodable::ConsensusEncodable;
let &$name(ref data) = self; let &$name(ref data) = self;
for word in data.iter() { try!(word.consensus_encode(s)); } for word in data.iter() { try!(word.consensus_encode(s)); }
Ok(()) Ok(())