Commit ae81241
authored
Rollup merge of rust-lang#68597 - ollie27:skip_nth_last, r=Amanieu
Simplify `Skip::nth` and `Skip::last` implementations
The main improvement is to make `last` no longer recursive.1 file changed
+7
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1890 | 1890 | | |
1891 | 1891 | | |
1892 | 1892 | | |
1893 | | - | |
1894 | | - | |
1895 | | - | |
| 1893 | + | |
1896 | 1894 | | |
1897 | 1895 | | |
1898 | 1896 | | |
1899 | 1897 | | |
1900 | 1898 | | |
1901 | 1899 | | |
1902 | | - | |
1903 | 1900 | | |
| 1901 | + | |
1904 | 1902 | | |
1905 | 1903 | | |
1906 | 1904 | | |
| |||
1916 | 1914 | | |
1917 | 1915 | | |
1918 | 1916 | | |
1919 | | - | |
1920 | | - | |
1921 | | - | |
1922 | | - | |
1923 | | - | |
1924 | | - | |
1925 | | - | |
1926 | | - | |
1927 | | - | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
1928 | 1921 | | |
1929 | 1922 | | |
| 1923 | + | |
1930 | 1924 | | |
1931 | 1925 | | |
1932 | 1926 | | |
| |||
0 commit comments