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

Some clippy fixes #879

Merged
merged 11 commits into from
Dec 18, 2023
Merged

Some clippy fixes #879

merged 11 commits into from
Dec 18, 2023

Conversation

waywardmonkeys
Copy link
Contributor

No description provided.

@madsmtm
Copy link
Contributor

madsmtm commented Nov 23, 2023

Perhaps it'd make sense to add clippy to CI?

@NobodyXu
Copy link
Collaborator

NobodyXu commented Nov 23, 2023

Yes it does, if you are fixing the clippy then it makes sense to also add it to the CI.

@waywardmonkeys
Copy link
Contributor Author

I'll rebase this, see if I had fixed everything, and if so, add it to CI.

@waywardmonkeys
Copy link
Contributor Author

There are still a number of clippy warnings, so that's why I hadn't enabled it in CI yet.

@workingjubilee
Copy link

Can you add a test that only fails on clippy errors, then? Clippy doesn't default-error for a lot, but on the things it does error for, they're pretty bad.

Copy link
Collaborator

@NobodyXu NobodyXu left a comment

Choose a reason for hiding this comment

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

Hi, I agree with @workingjubilee that adding clippy run that failed on clippy errors in CI is required for this PR to merge.

If you are willing to add that, I'm willing to approve and merge it.

@waywardmonkeys
Copy link
Contributor Author

I will work on it!

@waywardmonkeys
Copy link
Contributor Author

For better or worse, the if_same_then_else were errors (but I called them warnings in the commit message, I'll change that).

So they have to be fixed to add the new CI job.

@NobodyXu This should be re-ready for review.

There's still a bunch of clippy warnings ...

Copy link
Collaborator

@NobodyXu NobodyXu left a comment

Choose a reason for hiding this comment

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

LGTM, having warning is ok

@NobodyXu NobodyXu merged commit 987cd25 into rust-lang:main Dec 18, 2023
18 checks passed
@waywardmonkeys waywardmonkeys deleted the some-clippy-fixes branch December 18, 2023 23:19
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

4 participants