Skip to content

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
Contributor

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
Member

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
Contributor

@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
Contributor

@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
@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.

4 participants