Repository navigation
Cargo: Enable most pedantic Clippy lints + some from nursery & restriction
#23095
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
paldepind
wants to merge
62
commits into
main
Choose a base branch
from
rust/more-lint
base: main
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.
+701
−565
Open
Changes from all commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
cedfdeb
Enable Clippy's pedantic lints
paldepind b3552c5
Fix all results of the Clippy lint `cloned_instead_of_copied`
paldepind 5ae3fa9
Fix all results of the Clippy lint `implicit_clone`
paldepind e3c310e
Fix all results of the Clippy lint `single_match_else`
paldepind 7941191
Fix all results of the Clippy lint `uninlined_format_args`
paldepind 71ef28c
Fix all results of the Clippy lint `map_unwrap_or`
paldepind fd386a1
Fix all results of the Clippy lint `manual_string_new`
paldepind bac4c43
Fix all results of the Clippy lint `needless_continue`
paldepind c522fd2
Fix all results of the Clippy lint `match_same_arms`
paldepind e98c562
Fix all results of the Clippy lint `unnecessary_literal_bound`
paldepind 17db5e1
Fix all results of the Clippy lint `elidable_lifetime_names`
paldepind b03995f
Fix all results of the Clippy lint `doc_markdown`
paldepind 6b00a37
Fix all results of the Clippy lint `unnecessary_join`
paldepind c287799
Fix all results of the Clippy lint `needless_raw_string_hashes`
paldepind 52e9f50
Fix all results of the Clippy lint `non_std_lazy_statics`
paldepind ae96ca1
Fix all results of the Clippy lint `manual_assert`
paldepind 925a390
Fix all results of the Clippy lint `trivially_copy_pass_by_ref`
paldepind 9e71fdb
Fix all results of the Clippy lint `flat_map_option`
paldepind 5ef41d3
Fix all results of the Clippy lint `ref_option`
paldepind 3154453
Fix all results of the Clippy lint `semicolon_if_nothing_returned`
paldepind 207cc35
Fix all results of the Clippy lint `unnecessary_semicolon`
paldepind d1f084a
Fix all results of the Clippy lint `return_self_not_must_use`
paldepind 43105fb
Fix all results of the Clippy lint `match_wildcard_for_single_variants`
paldepind a8a1559
Fix all results of the Clippy lint `assigning_clones`
paldepind 187a969
Fix all results of the Clippy lint `needless_pass_by_value`
paldepind dfb6712
Fix all results of the Clippy lint `format_push_string`
paldepind c772de8
Ignore all results of the Clippy lint `too_many_lines`
paldepind 6f3da0d
Fix all results of the Clippy lint `single_char_pattern`
paldepind 7a3af00
Fix all results of the Clippy lint `unused_self`
paldepind f9fa4d2
Fix all results of the Clippy lint `explicit_into_iter_loop`
paldepind c5edcc8
Fix all results of the Clippy lint `unnecessary_debug_formatting`
paldepind 733f0a4
Fix all results of the Clippy lint `missing_fields_in_debug`
paldepind 65ef484
Fix all results of the Clippy lint `unreadable_literal`
paldepind 96b6fb0
Fix all results of the Clippy lint `struct_field_names`
paldepind 4957f2c
Fix all results of the Clippy lint `default_trait_access`
paldepind 9d4873f
Ignore all results of the Clippy lint `unicode_not_nfc`
paldepind f10e095
Fix all results of the Clippy lint `items_after_statements`
paldepind 6df1ef1
Allow select Clippy rules
paldepind 28482d5
Remove unused `lazy_static` dependency
paldepind e42b6ac
Fix all results of the Rust lint `redundant_imports`
paldepind 09cab3a
Fix all results of the Clippy lint `if_then_some_else_none`
paldepind add3693
Fix all results of the Clippy lint `unneeded_field_pattern`
paldepind 188940a
Fix all results of the Clippy lint `redundant_type_annotations`
paldepind 2e7188f
Fix all results of the Clippy lint `clone_on_ref_ptr`
paldepind 59bdf0b
Fix all results of the Clippy lint `undocumented_unsafe_blocks`
paldepind 0ec9b74
Fix all results of the Clippy lint `too_long_first_doc_paragraph`
paldepind de17919
Fix all results of the Clippy lint `renamed_function_params`
paldepind f8c436e
Fix all results of the Clippy lint `empty_structs_with_brackets`
paldepind 23ee316
Ignore all results of the Clippy lint `empty_enum_variants_with_brack…
paldepind 97355e0
Enable additional lints
paldepind 515e1df
Fix all results of the Clippy lint `redundant_clone`
paldepind 89781cf
Fix all results of the Clippy lint `or_fun_call`
paldepind f648e70
Fix all results of the Clippy lint `collection_is_never_read`
paldepind b6347a6
Fix all results of the Clippy lint `needless_pass_by_ref_mut`
paldepind 7e8b00f
Fix all results of the Clippy lint `unnecessary_struct_initialization`
paldepind e7a5efb
Fix all results of the Clippy lint `derive_partial_eq_without_eq`
paldepind d16b864
Revert "Fix all results of the Clippy lint `match_same_arms`"
paldepind eb4cc77
Disable `match_same_arms` lint
paldepind 1938c82
Revert "Fix all results of the Clippy lint `struct_field_names`"
paldepind aaee2b3
Disable `struct_field_names` lint
paldepind 379a161
Address comments from review
paldepind 2fa146b
Ruby: Extract helper function for coding word
paldepind 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # Names that do not need to be backtick quoted within documentation comments. | ||
| doc-valid-idents = ["CodeQL", ".."] |
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
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.
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.
Uh oh!
There was an error while loading. Please reload this page.