-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Enable more clippy lints #24322
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
emilk
wants to merge
41
commits into
apache:main
Choose a base branch
from
emilk:emilk/more-clippy-lints
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.
Open
Enable more clippy lints #24322
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
8b250e6
feat: enable 19 more clippy lints that need no code changes
emilk 5f53e4c
feat: enable clippy::unused_peekable
emilk 068d3ad
feat: enable clippy::fallible_impl_from
emilk 6be5234
feat: enable clippy::float_cmp_const
emilk ac09370
feat: enable clippy::lossy_float_literal
emilk 8a2bdc3
feat: enable clippy::manual_midpoint
emilk 999c2da
feat: enable clippy::literal_string_with_formatting_args
emilk 1dbde56
feat: enable clippy::ref_as_ptr
emilk 913310a
feat: enable clippy::unnecessary_safety_comment
emilk 20f4453
feat: enable clippy::large_types_passed_by_value
emilk 19eaa18
feat: enable clippy::unnecessary_box_returns
emilk 32dd685
feat: enable clippy::option_as_ref_cloned
emilk a31db08
feat: enable clippy::iter_on_single_items
emilk 72b7456
feat: enable clippy::string_lit_as_bytes
emilk 5b80ab1
feat: enable clippy::unnecessary_debug_formatting
emilk 316ea02
feat: enable clippy::option_option
emilk e534900
feat: enable clippy::single_option_map
emilk 663f66a
feat: enable clippy::ignore_without_reason
emilk 0f7e1ab
feat: enable clippy::branches_sharing_code
emilk 20fc834
feat: enable clippy::needless_type_cast
emilk c4bbf00
feat: enable clippy::checked_conversions
emilk 2758248
feat: enable clippy::filter_map_next
emilk fddce20
feat: enable clippy::large_digit_groups
emilk 6272053
feat: enable clippy::manual_is_variant_and
emilk 084783a
feat: enable clippy::duration_suboptimal_units
emilk 215f20a
feat: enable clippy::elidable_lifetime_names
emilk 460c0bd
feat: enable clippy::inconsistent_struct_constructor
emilk e19846a
feat: enable clippy::bool_to_int_with_if
emilk a8e2e35
feat: enable clippy::unnecessary_struct_initialization
emilk 9dce16b
feat: enable clippy::manual_assert
emilk 358f225
feat: enable clippy::rest_pat_in_fully_bound_structs
emilk e3a2747
feat: enable clippy::equatable_if_let
emilk 685ea70
feat: enable clippy::explicit_deref_methods
emilk 65ef16e
Revert "feat: enable clippy::unnecessary_safety_comment"
emilk 76bde3a
refactor: use `==` instead of `matches!` where the values are comparable
emilk 0d0bad8
Revert "feat: enable clippy::float_cmp_const"
emilk 92ae8a0
Revert "feat: enable clippy::lossy_float_literal"
emilk 42ef8b1
Revert "feat: enable clippy::fallible_impl_from"
emilk f65d360
refactor: address review feedback on duration units and the ignored test
emilk 1755ad1
fix: apply iter_on_single_items to a new site from main
emilk 2c28d49
Merge branch 'main' into emilk/more-clippy-lints
Dandandan 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
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.