This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 372
Fix Clippy #2522
Merged
Merged
Fix Clippy #2522
Changes from 12 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
14cb7ce
Import Clippy config from Polkadot
ggwpez fa2f6aa
Auto clippy fix
ggwpez 054c41d
No tabs in comments
ggwpez 8c06096
Prefer matches
ggwpez 7574da2
Dont drop references
ggwpez 1916b0f
Trivial
ggwpez 7da17c1
Refactor
ggwpez 08f6e90
fmt
ggwpez fedab5a
add clippy to ci
alvicsam a4507e3
Clippy reborrow
ggwpez 1b2f2da
Update client/pov-recovery/src/lib.rs
ggwpez c378038
Update client/pov-recovery/src/lib.rs
ggwpez 774399b
Partially revert 'Prefer matches'
ggwpez cda5cb0
Update .cargo/config.toml
ggwpez 7dee288
Revert revert 💩
ggwpez a3c5ea7
Merge remote-tracking branch 'origin/master' into oty-fix-clippy
d1f6acb
Merge remote-tracking branch 'origin/master' into oty-fix-clippy
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # | ||
| # An auto defined `clippy` feature was introduced, | ||
| # but it was found to clash with user defined features, | ||
| # so was renamed to `cargo-clippy`. | ||
| # | ||
| # If you want standard clippy run: | ||
| # RUSTFLAGS= cargo clippy | ||
| [target.'cfg(feature = "cargo-clippy")'] | ||
| rustflags = [ | ||
| "-Aclippy::all", | ||
| "-Dclippy::correctness", | ||
| "-Aclippy::if-same-then-else", | ||
| "-Aclippy::clone-double-ref", | ||
| "-Dclippy::complexity", | ||
| "-Aclippy::zero-prefixed-literal", # 00_1000_000 | ||
| "-Aclippy::type_complexity", # raison d'etre | ||
| "-Aclippy::nonminimal-bool", # maybe | ||
| "-Aclippy::borrowed-box", # Reasonable to fix this one | ||
| "-Aclippy::too-many-arguments", # (Turning this on would lead to) | ||
| "-Aclippy::unnecessary_cast", # Types may change | ||
| "-Aclippy::identity-op", # One case where we do 0 + | ||
| "-Aclippy::useless_conversion", # Types may change | ||
| "-Aclippy::unit_arg", # styalistic. | ||
| "-Aclippy::option-map-unit-fn", # styalistic | ||
| "-Aclippy::bind_instead_of_map", # styalistic | ||
| "-Aclippy::erasing_op", # E.g. 0 * DOLLARS | ||
| "-Aclippy::eq_op", # In tests we test equality. | ||
| "-Aclippy::while_immutable_condition", # false positives | ||
| "-Aclippy::needless_option_as_deref", # false positives | ||
| "-Aclippy::derivable_impls", # false positives | ||
| "-Aclippy::stable_sort_primitive", # prefer stable sort | ||
| ] | ||
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
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.
Uh oh!
There was an error while loading. Please reload this page.