Skip to content
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

Get clippy CI job working #401

Merged
merged 9 commits into from
Feb 9, 2024
Merged

Conversation

briansmith
Copy link
Contributor

@briansmith briansmith commented Feb 8, 2024

See the individual commits for details. Roughly:

  • Stop using deprecated features of chrono. This requires bumping the minimum chrono version.
  • Address all Clippy warnings.
  • Get the MSRV job in CI to pass, by raising the MSRV to 1.63.0.

@briansmith briansmith force-pushed the b/clippy branch 2 times, most recently from d4dc114 to 2463ded Compare February 8, 2024 23:00
@briansmith briansmith marked this pull request as draft February 8, 2024 23:00
@briansmith briansmith force-pushed the b/clippy branch 4 times, most recently from 6723d9e to 9ef4b42 Compare February 9, 2024 03:16
`path` is already a reference, so don't double-borrow it.
The called function is generic over `Intoiterator` so don't call
`into_iter()` on the parameter passed to it.
It seems like the `needless_borrows_for_generic_args` lint is being
way to aggressive here, so just ignore it.
It's probably good advice but it should be dealt with in its own PR.
The latest version of tempfile (because of its dependency rustix, at
least) requires 1.63.0. Similarly, the latest version of Tokio
requires it. The latest Chrono also requires 1.57.0.

Add a clippy.toml that prevents Clippy from recommending changes that
require a newer toolchain. This is required or else the `clippy` job
fails with advice to use APIs that are only in later versions.
@briansmith briansmith marked this pull request as ready for review February 9, 2024 03:29
@briansmith
Copy link
Contributor Author

@erickt PTAL at this. This is needed for any PR to pass the GitHub Actions CI. In particular, this is blocking #400 which updates to ring 0.17.

@erickt erickt merged commit 7e88068 into theupdateframework:develop Feb 9, 2024
16 checks passed
@briansmith briansmith deleted the b/clippy branch February 9, 2024 18:13
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.

2 participants