Skip to content

Add --check to cargo fmt run in CI #4533

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
Jul 7, 2025
Merged

Conversation

tgross35
Copy link
Contributor

@tgross35 tgross35 commented Jul 7, 2025

cargo fmt was being called twice without --check, so style was only enforced on files that got checked individually. Remove the redundant call and add --check here.

`cargo fmt` was being called twice without `--check`, so style was only
enforced on files that got checked individually. Remove the redundant
call and add `--check` here.
@tgross35 tgross35 added stable-nominated This PR should be considered for cherry-pick to libc's stable release branch and removed S-waiting-on-review labels Jul 7, 2025
@rustbot rustbot added ctest Issues relating to the ctest crate O-linux O-musl O-powerpc O-unix labels Jul 7, 2025
@tgross35 tgross35 enabled auto-merge July 7, 2025 17:03
@tgross35 tgross35 added this pull request to the merge queue Jul 7, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 7, 2025
@tgross35 tgross35 added this pull request to the merge queue Jul 7, 2025
Merged via the queue into rust-lang:main with commit f066ad0 Jul 7, 2025
49 of 52 checks passed
@tgross35 tgross35 deleted the enforce-fmt branch July 7, 2025 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ctest Issues relating to the ctest crate O-linux O-musl O-powerpc O-unix stable-nominated This PR should be considered for cherry-pick to libc's stable release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants