Skip to content

Travis CI fixes #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 20, 2020
Merged

Travis CI fixes #159

merged 2 commits into from
Apr 20, 2020

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