Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace custom
advance_by
with Iterator::nth
Previously, there was a comment stating that we must wait for [`Iterator::advance_by` to be stabilizied](rust-lang/rust#77404), but it makes more sense to use the [existing `Iterator::nth` method](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.nth) anyway, so I updated all callsites to use it. Depending on the iterator implementation, this could result in a performance improvement.
- Loading branch information