]> git.lizzy.rs Git - rust.git/commit
Prefer `.nth(n)` over `.skip(n).next()`.
authorCorey Farwell <coreyf@rwell.org>
Thu, 23 Aug 2018 13:35:49 +0000 (09:35 -0400)
committerCorey Farwell <coreyf@rwell.org>
Thu, 23 Aug 2018 13:35:49 +0000 (09:35 -0400)
commit9e0ff24b6dbeaa549775ef77e5fdf8493f0f82da
tree778cd550b1a9c85845d97483daefa82cc0226781
parent917945d662c42053383fe3e71cb0f313d585e459
Prefer `.nth(n)` over `.skip(n).next()`.

Found by clippy.
src/libcore/fmt/mod.rs
src/librustc_metadata/encoder.rs
src/librustc_typeck/check/mod.rs
src/test/run-pass-fulldeps/auxiliary/proc_macro_def.rs
src/test/run-pass/command-before-exec.rs