Merge pull request #936 from ethcore/bumping-clippy

Bumping clippy and fixing warnings.
This commit is contained in:
Arkadiy Paronyan
2016-04-12 16:49:30 +02:00
14 changed files with 29 additions and 32 deletions

View File

@@ -140,10 +140,8 @@ impl<'a> Executive<'a> {
let init_gas = t.gas - base_gas_required;
// validate transaction nonce
if check_nonce {
if t.nonce != nonce {
return Err(From::from(ExecutionError::InvalidNonce { expected: nonce, got: t.nonce }));
}
if check_nonce && t.nonce != nonce {
return Err(From::from(ExecutionError::InvalidNonce { expected: nonce, got: t.nonce }));
}
// validate if transaction fits into given block

View File

@@ -67,6 +67,8 @@ pub struct Externalities<'a, T> where T: 'a + Tracer {
}
impl<'a, T> Externalities<'a, T> where T: 'a + Tracer {
#[cfg_attr(feature="dev", allow(too_many_arguments))]
/// Basic `Externalities` constructor.
pub fn new(state: &'a mut State,
env_info: &'a EnvInfo,

View File

@@ -19,7 +19,7 @@ use common::*;
/// State changes which should be applied in finalize,
/// after transaction is fully executed.
#[derive(Debug)]
#[derive(Debug, Default)]
pub struct Substate {
/// Any accounts that have suicided.
pub suicides: HashSet<Address>,

View File

@@ -17,7 +17,7 @@
//! Tracing datatypes.
use common::*;
/// TraceCall result.
/// `TraceCall` result.
#[derive(Debug, Clone, PartialEq, Default)]
pub struct TraceCallResult {
/// Gas used by call.
@@ -26,7 +26,7 @@ pub struct TraceCallResult {
pub output: Bytes,
}
/// TraceCreate result.
/// `TraceCreate` result.
#[derive(Debug, Clone, PartialEq)]
pub struct TraceCreateResult {
/// Gas used by create.