Repository navigation
Clippy lints #332
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
Open
EdJoPaTo
wants to merge
14
commits into
rust-scraper:master
Choose a base branch
from
EdJoPaTo:clippy-lints
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Clippy lints #332
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
6e85cb9
lint: move to Cargo.toml
EdJoPaTo 20ed758
lint: redundant_imports
EdJoPaTo 24782d3
lint: single_use_lifetimes
EdJoPaTo 506d7ae
clippy::allow_attributes
EdJoPaTo 6dde424
clippy::pedantic
EdJoPaTo 237b07b
check lints for multiple feature sets
EdJoPaTo 974e159
clippy::enum_glob_use
EdJoPaTo 9eacbe6
clippy::explicit_deref_methods
EdJoPaTo cca4ca6
clippy::semicolon_if_nothing_returned
EdJoPaTo b76165a
clippy::needless_pass_by_value
EdJoPaTo 2f81945
clippy::should_panic_without_expect
EdJoPaTo 31e1854
clippy::similar_names
EdJoPaTo 03058b2
clippy::default_trait_access
EdJoPaTo 2aa0467
clippy::manual_let_else
EdJoPaTo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,3 @@ | ||
| extern crate scraper; | ||
|
|
||
| use std::io::{self, Read, Write}; | ||
|
|
||
| use scraper::{Html, Selector}; | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,3 @@ | ||
| extern crate scraper; | ||
|
|
||
| use std::io::{self, Read, Write}; | ||
|
|
||
| use scraper::{Html, Selector}; | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
pendanticlint group and what follows based on that.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.