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")
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user