Fixing clippy warnings
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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>,
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user