Style fixed after review

This commit is contained in:
Anton Gavrilov 2017-08-10 12:36:29 +02:00
parent dd91121017
commit bfd238e000
7 changed files with 36 additions and 37 deletions

View File

@ -91,7 +91,7 @@ pub struct ExecutedBlock {
receipts: Vec<Receipt>, receipts: Vec<Receipt>,
transactions_set: HashSet<H256>, transactions_set: HashSet<H256>,
state: State<StateDB>, state: State<StateDB>,
traces: Option<Vec<Vec<FlatTrace>>> traces: Option<Vec<Vec<FlatTrace>>>,
} }
/// A set of references to `ExecutedBlock` fields that are publicly accessible. /// A set of references to `ExecutedBlock` fields that are publicly accessible.

View File

@ -24,7 +24,7 @@ use block::*;
use builtin::Builtin; use builtin::Builtin;
use vm::EnvInfo; use vm::EnvInfo;
use error::{BlockError, Error, TransactionError}; use error::{BlockError, Error, TransactionError};
use trace::{Tracer, ExecutiveTracer,RewardType}; use trace::{Tracer, ExecutiveTracer, RewardType};
use header::{Header, BlockNumber}; use header::{Header, BlockNumber};
use state::CleanupMode; use state::CleanupMode;
use spec::CommonParams; use spec::CommonParams;

View File

@ -170,7 +170,7 @@ impl From<ethjson::spec::Params> for CommonParams {
wasm: p.wasm.unwrap_or(false), wasm: p.wasm.unwrap_or(false),
gas_limit_bound_divisor: p.gas_limit_bound_divisor.into(), gas_limit_bound_divisor: p.gas_limit_bound_divisor.into(),
block_reward: p.block_reward.map_or_else(U256::zero, Into::into), block_reward: p.block_reward.map_or_else(U256::zero, Into::into),
registrar: p.registrar.map_or_else(Address::new, Into::into) registrar: p.registrar.map_or_else(Address::new, Into::into),
} }
} }
} }

View File

@ -130,8 +130,7 @@ impl Filter {
from_matches && to_matches from_matches && to_matches
}, },
Action::Reward(ref reward) => { Action::Reward(ref reward) => {
let to_matches = self.to_address.matches(&reward.author); self.to_address.matches(&reward.author)
to_matches
} }
} }
} }