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

[infra] Fail Clippy on rust build warnings #1029

Merged
merged 4 commits into from
Feb 20, 2025

Conversation

kevinjqliu
Copy link
Contributor

Which issue does this PR close?

Closes #1028

Rationale for this change

CI should fail if rust warnings are generated

What changes are included in this PR?

Add -D warnings to cargo clippy commands

Are there any user-facing changes?

Nope

@kevinjqliu
Copy link
Contributor Author

interestingly, -D warnings is set here

cargo clippy --all-targets --workspace --features default -- -D warnings

@kevinjqliu
Copy link
Contributor Author

CI should fail. Now we just need to fix the warnings 😄

@timsaucer timsaucer self-requested a review February 19, 2025 19:01
@kevinjqliu kevinjqliu force-pushed the kevinjqliu/clippy-fails-on-warning branch from c8942b4 to ad37552 Compare February 20, 2025 00:25
Copy link
Contributor

@timsaucer timsaucer left a comment

Choose a reason for hiding this comment

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

Thank you!

@timsaucer timsaucer merged commit 3584bec into apache:main Feb 20, 2025
15 checks passed
@kevinjqliu kevinjqliu deleted the kevinjqliu/clippy-fails-on-warning branch February 20, 2025 02:18
@kevinjqliu
Copy link
Contributor Author

ah I was going to rebase after #1030 is merged, but this works too. Thanks!

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.

CI should fail if rust warnings are generated
2 participants