Skip to content

Conversation

@nickolay
Copy link
Contributor

@nickolay nickolay commented Apr 14, 2020

Thanks @eyalleshem for noticing, a clippy update added a new lint, which now fails on Travis:

iter.next() is equivalent to iter.nth(0), as they both consume the
next element, but is more readable.

https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero

After fixing that, I took advantage of the fact that rustup can now install find the nightly with the necessary components instead of complaining that the most recent one is broken.

I also noticed that coverage broke due to a change to the Cargo.lock format and tried to fix that by importing the unreleased version from roblabla/cargo-travis#66 , but that resulted in linking errors, so I dropped it.

"iter.next() is equivalent to iter.nth(0), as they both consume the
next element, but is more readable."

https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero
@nickolay nickolay changed the title Fix a new clippy lint (.nth(0)) to unbreak CI Travis CI fixes Apr 14, 2020
@nickolay nickolay merged commit b9f1ff6 into apache:master Apr 20, 2020
@nickolay nickolay deleted the pr/clippy branch April 20, 2020 00:02
nickolay added a commit to nickolay/sqlparser-rs that referenced this pull request May 26, 2020
… workflows

This should fix the build failures due to unavailable components, e.g.

error: component 'rustfmt' for target 'x86_64-unknown-linux-gnu' is unavailable for download for channel nightly
Sometimes not all components are available in any given nightly.
@nickolay nickolay mentioned this pull request May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant