Fixed other types

This commit is contained in:
maciejhirsz 2017-01-30 19:13:35 +01:00
parent 5fe54901e7
commit 6795068ea4
4 changed files with 6 additions and 6 deletions

View File

@ -233,7 +233,7 @@ impl Decodable for BlockReceipts {
impl Encodable for BlockReceipts {
fn rlp_append(&self, s: &mut RlpStream) {
s.append(&self.receipts);
Encodable::rlp_append(&self.receipts, s);
}
}

View File

@ -46,7 +46,7 @@ impl Encodable for CallType {
CallType::CallCode => 2,
CallType::DelegateCall => 3,
};
s.append(&v);
Encodable::rlp_append(&v, s);
}
}

View File

@ -17,7 +17,7 @@
//! Trace errors.
use std::fmt;
use rlp::{Encodable, RlpStream, Decodable, Decoder, DecoderError, Stream, View};
use rlp::{RlpEncodable, Encodable, RlpStream, Decodable, Decoder, DecoderError, View};
use evm::Error as EvmError;
/// Trace evm errors.
@ -79,7 +79,7 @@ impl Encodable for Error {
OutOfStack => 4,
Internal => 5,
};
s.append(&value);
RlpEncodable::rlp_append(&value, s);
}
}

View File

@ -103,7 +103,7 @@ impl FlatTransactionTraces {
impl Encodable for FlatTransactionTraces {
fn rlp_append(&self, s: &mut RlpStream) {
s.append(&self.0);
Encodable::rlp_append(&self.0, s);
}
}
@ -144,7 +144,7 @@ impl FlatBlockTraces {
impl Encodable for FlatBlockTraces {
fn rlp_append(&self, s: &mut RlpStream) {
s.append(&self.0);
Encodable::rlp_append(&self.0, s);
}
}