Skip to content

Conversation

phip1611
Copy link
Member

@phip1611 phip1611 commented Sep 12, 2025

Using clippy::nursery, I was able to perform the following improvements:

Steps to Undraft

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

@phip1611 phip1611 self-assigned this Sep 12, 2025
@phip1611 phip1611 force-pushed the clippy-tightening branch 2 times, most recently from 9b911ae to cff70a4 Compare September 12, 2025 08:33
@@ -14,6 +14,8 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![deny(
clippy::all,
clippy::cargo,
clippy::nursery,
Copy link
Member

Choose a reason for hiding this comment

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

Per https://doc.rust-lang.org/clippy/, nursery lints are "new lints that are still under development". I don't think we should enable these, since there will likely be false positives. If a lint's development is completed then it will naturally graduate to a different group.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, fine :)

Background: I use it in all my personal projects and never experienced any drawbacks; but we also do not really need it. So yeah, I'll remove that part from the PR.

Nevertheless, it is beneficial to temporarily activate the corresponding lints locally and see what code can be improved - I found quite some nice improvements

@phip1611 phip1611 force-pushed the clippy-tightening branch 2 times, most recently from bdfb4d5 to 5a48c1c Compare September 13, 2025 08:37
@phip1611 phip1611 marked this pull request as ready for review September 13, 2025 08:42
@phip1611 phip1611 changed the title style: tighten clippy lints style: apply/fix more clippy lints (from cargo::nursery) Sep 13, 2025
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