Warnings removed

This commit is contained in:
Anton Gavrilov 2017-07-18 15:58:14 +02:00
parent 06862c7dee
commit 204a63a00e
4 changed files with 4 additions and 4 deletions

View File

@ -563,7 +563,7 @@ impl Engine for AuthorityRound {
warn!("Encountered error on closing block: {}", e);
}
match res {
Ok(res) => match *fields.tracing_enabled {
Ok(_) => match *fields.tracing_enabled {
true => Ok(CloseOutcome{trace: Some(tracer.traces())}),
false => Ok(CloseOutcome{trace: None})
},

View File

@ -558,7 +558,7 @@ impl Engine for Tendermint {
warn!("Encountered error on closing block: {}", e);
}
match res {
Ok(res) => match *fields.tracing_enabled {
Ok(_) => match *fields.tracing_enabled {
true => Ok(CloseOutcome{trace: Some(tracer.traces())}),
false => Ok(CloseOutcome{trace: None})
},

View File

@ -296,7 +296,7 @@ impl Engine for Arc<Ethash> {
let current_number = fields.header.number();
for u in fields.uncles.iter() {
let uncle_miner = u.author().clone();
let mut result_uncle_reward: U256 = U256::from(0);
let result_uncle_reward: U256;
if eras == 0 {
result_uncle_reward = reward * U256::from(8 + u.number() - current_number) / U256::from(8);

View File

@ -58,7 +58,7 @@ impl Tracer for NoopTracer {
fn trace_suicide(&mut self, _address: Address, _balance: U256, _refund_address: Address) {
}
fn trace_reward(&mut self, miner: Address, value: U256, reward_type: RewardType) {
fn trace_reward(&mut self, _: Address, _: U256, _: RewardType) {
}
fn subtracer(&self) -> Self {