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

Address Clippy lints #1379

Merged
merged 6 commits into from
Jul 9, 2022
Merged

Address Clippy lints #1379

merged 6 commits into from
Jul 9, 2022

Conversation

PolyMeilex
Copy link
Contributor

A bunch of stylistic changes based on Clippy lints

@hecrj hecrj added the improvement An internal improvement label Jul 9, 2022
@hecrj hecrj modified the milestones: 0.5.0, 0.4.3 Jul 9, 2022
hecrj added 3 commits July 9, 2022 18:03
... and explicitly annotate crates as well.
... and check those in CI as well!
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

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

Awesome! Thank you 🥳 Lots of needless borrows I see!

I have gone ahead and fixed all of the reasonable lints in all of the crates and disabled the unreasonable ones.

Additionally, I have introduced a new lint workflow on GitHub CI that should error if we ever make clippy angry. Let's see how this pans out!

@hecrj hecrj merged commit 9051dd6 into iced-rs:master Jul 9, 2022
@PolyMeilex PolyMeilex deleted the fix/clippy branch July 9, 2022 20:03
@PolyMeilex
Copy link
Contributor Author

Thanks, I was not sure which choices were intentional and which ones should be fixed, that's why my PR was fixing only some of them, so it's great that you did all the remaining ones that I was not sure about. 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement An internal improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants