Skip to content

Apply new clippy lint fixes #375

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 4 commits into from
Feb 17, 2025
Merged

Apply new clippy lint fixes #375

merged 4 commits into from
Feb 17, 2025

Conversation

alerque
Copy link
Collaborator

@alerque alerque commented Nov 29, 2024

The first commit here has some obvious fixes for convoluted code that has idiomatic Rust alternatives.

The second commit is for using lifetime elision instead of annotations. I understand this one is a bit more controversion and some projects have opted to ignore this lint instead. Personally I think I'm fine with it, I'd rather see annotations where they are meaningful and need to be included in reading the code to grok it, but if anybody here has issues with that I'm happy to consider ignoring these.

@alerque
Copy link
Collaborator Author

alerque commented Nov 29, 2024

@waywardmonkeys Any idea off the top of your head how to deal with the other new lint not covered here yet involving mutable references to mutable static?

@waywardmonkeys
Copy link
Collaborator

@waywardmonkeys Any idea off the top of your head how to deal with the other new lint not covered here yet involving mutable references to mutable static?

Not offhand and don't have the time this week to dig into it. :(

Copy link
Collaborator

@waywardmonkeys waywardmonkeys left a comment

Choose a reason for hiding this comment

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

These changes so far look good to me.

@alerque alerque merged commit 10302d0 into main Feb 17, 2025
5 of 6 checks passed
@alerque alerque deleted the clippy branch February 17, 2025 19:42
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.

2 participants