diff --git a/ethcore/src/basic_authority.rs b/ethcore/src/basic_authority.rs index af0bcb207..e1dab7c17 100644 --- a/ethcore/src/basic_authority.rs +++ b/ethcore/src/basic_authority.rs @@ -24,7 +24,7 @@ use engine::*; use evm::{Schedule, Factory}; use ethjson; -/// BasicAuthority params. +/// `BasicAuthority` params. #[derive(Debug, PartialEq)] pub struct BasicAuthorityParams { /// Gas limit divisor. @@ -45,7 +45,7 @@ impl From for BasicAuthorityParams { } } -/// Engine using BasicAuthority proof-of-work consensus algorithm, suitable for Ethereum +/// Engine using `BasicAuthority` proof-of-work consensus algorithm, suitable for Ethereum /// mainnet chains in the Olympic, Frontier and Homestead eras. pub struct BasicAuthority { params: CommonParams, @@ -192,7 +192,7 @@ impl Header { } } -/// Create a new test chain spec with BasicAuthority consensus engine. +/// Create a new test chain spec with `BasicAuthority` consensus engine. pub fn new_test_authority() -> Spec { Spec::load(include_bytes!("../res/test_authority.json")) } #[cfg(test)] diff --git a/ethcore/src/client/client.rs b/ethcore/src/client/client.rs index ed5460ffd..23b81b34e 100644 --- a/ethcore/src/client/client.rs +++ b/ethcore/src/client/client.rs @@ -42,7 +42,7 @@ use env_info::EnvInfo; use executive::{Executive, Executed, TransactOptions, contract_address}; use receipt::LocalizedReceipt; pub use blockchain::CacheSize as BlockChainCacheSize; -use trace::{TraceDB, ImportRequest as TraceImportRequest, LocalizedTrace, Database as TraceDatabase, Filter as TracedbFilter}; +use trace::{TraceDB, ImportRequest as TraceImportRequest, LocalizedTrace, Database as TraceDatabase}; use trace; /// General block status diff --git a/miner/src/miner.rs b/miner/src/miner.rs index 66545c8e1..78ff824f6 100644 --- a/miner/src/miner.rs +++ b/miner/src/miner.rs @@ -166,9 +166,9 @@ impl Miner { trace!(target: "miner", "prepare_sealing: block has transaction - attempting internal seal."); // block with transactions - see if we can seal immediately. let a = self.accounts.read().unwrap(); - let s = chain.generate_seal(block.block(), match a.deref() { - &Some(ref x) => Some(x.deref() as &AccountProvider), - &None => None, + let s = chain.generate_seal(block.block(), match *a.deref() { + Some(ref x) => Some(x.deref() as &AccountProvider), + None => None, }); if let Some(seal) = s { trace!(target: "miner", "prepare_sealing: managed internal seal. importing..."); @@ -183,7 +183,7 @@ impl Miner { } return; } else { - trace!(target: "miner", "prepare_sealing: unable to generate seal internally"); + trace!(target: "miner", "prepare_sealing: unable to generate seal internally"); } } if sealing_work.peek_last_ref().map_or(true, |pb| pb.block().fields().header.hash() != block.block().fields().header.hash()) { diff --git a/parity/main.rs b/parity/main.rs index 23f299406..9da523fd2 100644 --- a/parity/main.rs +++ b/parity/main.rs @@ -214,7 +214,7 @@ fn execute_client(conf: Configuration) { } fn flush_stdout() { - ::std::io::stdout().flush().ok().expect("stdout is flushable; qed"); + ::std::io::stdout().flush().expect("stdout is flushable; qed"); } fn execute_account_cli(conf: Configuration) {