Merge pull request #688 from ethcore/updating_clippy

Updating clippy
This commit is contained in:
Marek Kotewicz
2016-03-13 10:07:44 +01:00
17 changed files with 103 additions and 51 deletions

View File

@@ -57,9 +57,15 @@ pub enum EachBlockWith {
UncleAndTransaction
}
impl Default for TestBlockChainClient {
fn default() -> Self {
TestBlockChainClient::new()
}
}
impl TestBlockChainClient {
/// Creates new test client.
pub fn new() -> TestBlockChainClient {
pub fn new() -> Self {
let mut client = TestBlockChainClient {
blocks: RwLock::new(HashMap::new()),