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

chore: fix last clippy lints and enforce in CI #3106

Merged
merged 6 commits into from
Apr 10, 2025
Merged

Conversation

nyurik
Copy link
Contributor

@nyurik nyurik commented Feb 1, 2025

  • make bindgen faster - converted a lot of string format allocations to direct writes
  • turns out clippy was part of CI, but was not used to enforce anything
  • clippy should not use nightly channel
  • check-cfg has been stabilized since 1.80, so no need for a separate CI job
  • rustfmt is the only job requiring nightly

Also, I think we should remove installation of the stable rust - github runners have been very good at keeping rust version up to date, no need to waste time for each job to install it.

@nyurik nyurik changed the title chore: fix new clippy lints chore: fix new clippy lints and enforce in CI Feb 1, 2025
@nyurik nyurik changed the title chore: fix new clippy lints and enforce in CI chore: fix lats clippy lints and enforce in CI Feb 1, 2025
@nyurik nyurik changed the title chore: fix lats clippy lints and enforce in CI chore: fix last clippy lints and enforce in CI Feb 1, 2025
@nyurik nyurik force-pushed the lints branch 2 times, most recently from b07c1ce to 005a5de Compare February 3, 2025 01:20
Copy link
Contributor

@emilio emilio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of the code being fixed is test / fuzzing code, but I guess it doesn't hurt :)

uses: dtolnay/rust-toolchain@master
with:
# TODO: Should ideally be stable, but we use some nightly-only
# features.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This TODO is still accurate afaict, let's keep it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I had this written before and somehow didn't submit. Nevermind tho

@emilio emilio added this pull request to the merge queue Apr 10, 2025
Merged via the queue into rust-lang:main with commit 97ab915 Apr 10, 2025
34 checks passed
@nyurik nyurik deleted the lints branch April 10, 2025 00:15
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.

None yet

2 participants