removed redundant clone before each block import (#9683)

* removed redundant clone before each block import

* Fix a trival typo
This commit is contained in:
Marek Kotewicz
2018-10-03 18:44:58 +01:00
committed by Wei Tang
parent 911fc74346
commit 5a2f3e700b
4 changed files with 21 additions and 19 deletions

View File

@@ -207,7 +207,7 @@ impl<T: ChainDataFetcher> Client<T> {
/// Import a header to the queue for additional verification.
pub fn import_header(&self, header: Header) -> EthcoreResult<H256> {
self.queue.import(header).map_err(Into::into)
self.queue.import(header).map_err(|(_, e)| e)
}
/// Inquire about the status of a given header.