]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #96350 - austinabell:skip_optimization, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Mon, 15 Aug 2022 03:09:20 +0000 (03:09 +0000)
committerbors <bors@rust-lang.org>
Mon, 15 Aug 2022 03:09:20 +0000 (03:09 +0000)
fix(iter::skip): Optimize `next` and `nth` implementations of `Skip`

This avoids calling nth/next or nth/nth to first skip elements and then get the next one (unless necessary due to usize overflow).


Trivial merge