Skip to content

Clippy lints - #332

Open
EdJoPaTo wants to merge 14 commits into
rust-scraper:masterfrom
EdJoPaTo:clippy-lints
Open

EdJoPaTo wants to merge 14 commits into
rust-scraper:masterfrom
EdJoPaTo:clippy-lints

Conversation

@EdJoPaTo

@EdJoPaTo EdJoPaTo commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Apply a bunch of lints to improve and ensure code quality.
Each change is in its own commit so it's easy to drop a single change.

Comment thread scraper/Cargo.toml
unused_qualifications = "warn"
variant_size_differences = "warn"
[lints.clippy]
pedantic = { level = "warn", priority = -1 }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some of the changes presented are worthwhile, but this is not something I want to maintain here.

@EdJoPaTo EdJoPaTo Nov 11, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not entirely sure whether I understand this comment. Enabling a lint group that hints more things is too annoying?
Not sure what to change here, feel free to drop commits or decline the PR all together?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That specific lint group pedantic. I am unwilling to unconditionally enable it in this project.

It is an opinionated lint group, some projects use it as you do here, some don't. It implies it certain amount of churn. In this project, I do not want that.

So, I am willing to take the move of the Clippy lints to Cargo.toml, the CI extension, but not enabling the pendantic lint group and what follows based on that.

Not sure what to change here, feel free to drop commits or decline the PR all together?

You are capable of reworking the PR. I am not lacking PR to review over various FOSS projects, so if you are not interested in reworking it yourself, please signal that by closing it.

This branch has not been deployed

No deployments
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