]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #68597 - ollie27:skip_nth_last, r=Amanieu
authorYuki Okushi <huyuumi.dev@gmail.com>
Tue, 18 Feb 2020 11:09:02 +0000 (20:09 +0900)
committerGitHub <noreply@github.com>
Tue, 18 Feb 2020 11:09:02 +0000 (20:09 +0900)
commitae81241eae061ee9fb2af798b109508c27f208f1
tree069930e32fd1cce1611509e0ca9e5964bef3baaa
parent6c4f8598b916087e2758d8c14c249ee5fa4fa0d5
parent84f3356e0dffc36f57d9be7902822db5d362e24f
Rollup merge of #68597 - ollie27:skip_nth_last, r=Amanieu

Simplify `Skip::nth` and `Skip::last` implementations

The main improvement is to make `last` no longer recursive.
src/libcore/iter/adapters/mod.rs