]> git.lizzy.rs Git - rust.git/commit
tidy: Clean up argument handling
authorJosh Triplett <josh@joshtriplett.org>
Sat, 1 Sep 2018 19:24:03 +0000 (12:24 -0700)
committerJosh Triplett <josh@joshtriplett.org>
Sat, 1 Sep 2018 19:24:03 +0000 (12:24 -0700)
commit2893a2127d02de058bb41bde44eaa8c8cbd473a4
tree0f5b1470820defd843222db3203bd758d145f304
parent0f40a12ea35d0a33cef29dc50787ed6efd74cbfd
tidy: Clean up argument handling

Use `.nth(n)` rather than `.skip(n).next()` (also fixes a clippy
warning), and use `.into()` and a type signature rather than
`PathBuf::from`.
src/tools/tidy/src/main.rs