Skip to content

Fix errors exposed by cargo ci on nightly#1388

Closed
CleanCut wants to merge 2 commits intobevyengine:masterfrom
CleanCut:nightly-clippy
Closed

Fix errors exposed by cargo ci on nightly#1388
CleanCut wants to merge 2 commits intobevyengine:masterfrom
CleanCut:nightly-clippy

Conversation

@CleanCut
Copy link
Member

@CleanCut CleanCut commented Feb 3, 2021

When running cargo ci with the current nightly Rust, a bunch of bleeding-edge clippy things show up. Since we encourage people to use nightly, it makes sense to fix those too, even though official CI is on stable.

I originally thought the new clippy errors that turned up were due to a difference in nightly vs stable, but upon closer inspection I believe a big factor is that we are now passing --workspace to clippy, where we were not before. Whatever the case, this PR cleans them all up.

This builds on #1387

@CleanCut CleanCut mentioned this pull request Feb 3, 2021
4 tasks
@CleanCut
Copy link
Member Author

CleanCut commented Feb 4, 2021

Closing this in favor of merging the same fix into #1387 so it can pass CI.

@CleanCut CleanCut closed this Feb 4, 2021
bors bot pushed a commit that referenced this pull request Feb 22, 2021
This PR is easiest to review commit by commit.

Followup on #1309 (comment)

- [x] Switch from a bash script to an xtask rust workspace member.
  - Results in ~30s longer CI due to compilation of the xtask itself
  - Enables Bevy contributors on any platform to run `cargo ci` to run linting -- if the default available Rust is the same version as on CI, then the command should give an identical result.
- [x] Use the xtask from official CI so there's only one place to update.
- [x] Bonus: Run clippy on the _entire_ workspace (existing CI setup was missing the `--workspace` flag
  - [x] Clean up newly-exposed clippy errors 

~#1388 builds on this to clean up newly discovered clippy errors -- I thought it might be nicer as a separate PR.~  Nope, merged it into this one so CI would pass.

Co-authored-by: Carter Anderson <mcanders1@gmail.com>
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