Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Fix compile warning (#11727)
Browse files Browse the repository at this point in the history
  • Loading branch information
vorot93 authored May 21, 2020
1 parent 6179a9d commit eee06b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ethcore/src/test_helpers/test_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering as AtomicOrder};
use std::sync::Arc;
use std::collections::{HashMap, BTreeMap};
use blockchain::BlockProvider;
use std::mem;

use blockchain::{TreeRoute, BlockReceipts};
use bytes::Bytes;
Expand Down Expand Up @@ -584,7 +583,7 @@ impl ImportBlock for TestBlockChainClient {
let mut difficulty = self.difficulty.write();
*difficulty = *difficulty + header.difficulty().clone();
}
mem::replace(&mut *self.last_hash.write(), h.clone());
*self.last_hash.write() = h;
self.blocks.write().insert(h.clone(), unverified.bytes);
self.numbers.write().insert(number, h.clone());
let mut parent_hash = header.parent_hash().clone();
Expand Down

0 comments on commit eee06b3

Please sign in to comment.