fix: remove needless use of itertools (#11029)
* Remove needless use of `itertools` in `ethcore-light` * Replace `itertools::repeat::call` with `std::iter::repeat_with`
This commit is contained in:
committed by
Andronik Ordian
parent
680807e601
commit
a4969ca498
@@ -550,7 +550,7 @@ impl HeaderChain {
|
||||
let canon = &era_entry.candidates[0];
|
||||
(canon.hash, canon.total_difficulty)
|
||||
};
|
||||
cht::compute_root(cht_num, ::itertools::repeat_call(iter))
|
||||
cht::compute_root(cht_num, std::iter::repeat_with(iter))
|
||||
.expect("fails only when too few items; this is checked; qed")
|
||||
};
|
||||
|
||||
|
||||
@@ -67,11 +67,9 @@ extern crate ethereum_types;
|
||||
extern crate ethcore_miner as miner;
|
||||
extern crate hash_db;
|
||||
extern crate parity_util_mem;
|
||||
extern crate parity_util_mem as mem;
|
||||
extern crate parity_util_mem as malloc_size_of;
|
||||
extern crate failsafe;
|
||||
extern crate futures;
|
||||
extern crate itertools;
|
||||
extern crate keccak_hasher;
|
||||
extern crate machine;
|
||||
extern crate memory_db;
|
||||
|
||||
Reference in New Issue
Block a user