-
Notifications
You must be signed in to change notification settings - Fork 97
Run Clippy #2181
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
ada4a
wants to merge
59
commits into
rust-lang:master
Choose a base branch
from
ada4a: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
Run Clippy #2181
Changes from all commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
daa1e8d
Add Nix flake
ada4a f82b3c2
parser: bump edition to 2024
ada4a deb5439
unused/elidable lifetimes
ada4a 5b2c130
redundant refs/derefs
ada4a 8a7c9f7
clippy::uninlined_format_args
ada4a b094757
clippy::if_not_else
ada4a 659d85e
clippy::needless_return
ada4a 8df056e
explicit iterator loops
ada4a 52d5270
clippy::useless_conversion
ada4a 258e3b7
simplify thanks to the previous commit
ada4a 60602d0
simplify `match`es
ada4a 88731ed
use `std::iter::zip`
ada4a 82259d8
clippy::inefficient_to_string
ada4a ef55ea7
clippy::ignored_unit_patterns
ada4a 69cb114
derive `Default` for `IssueLinksCheckCommitsConfig`
ada4a 8760f36
use more idiomatic iterator/`Option` adaptors
ada4a 32ea017
clean-up consts
ada4a 778ba02
use `let-else`
ada4a 031aa5d
clippy::cast_lossless
ada4a 554289e
documentation lints
ada4a d978fc5
reborrow instead of slicing
ada4a d15c931
add/remove semicolons
ada4a b331922
clippy::write_with_newline
ada4a 38ba2dd
clippy::manual_string_new
ada4a c27e100
clippy::single_char_pattern
ada4a 9989a85
clippy::implicit_clone
ada4a 93a80e0
get `command` without unwrapping
ada4a 1da5e71
`write!` _inside_ `match`
ada4a e2903b5
clippy::unneded_struct_pattern
ada4a 01d4d27
clippy::manual_strip
ada4a 867b95f
clippy::manual_assert
ada4a d92c33d
needless `into_iter`
ada4a 7d729ff
clippy::legacy_numeric_constants
ada4a 8372962
clippy::inconsistent_struct_constructor
ada4a efdd2a8
clippy::redundant_closure_for_method_calls
ada4a f846986
clippy::manual_is_variant_and
ada4a 6ba8cc3
clippy::needless_raw_string_hashes
ada4a 5ed9adf
clippy::question_mark
ada4a 41bde06
construct `HashMap` from array
ada4a bc1d4ab
clippy::collapsible{,_else}_if
ada4a ea0801a
use `Result::ok_or` for trying out multiple things
ada4a 05ecbd4
use `as_deref` to avoid allocating a String
ada4a 2d19376
`RustcFormat::store_version`: take params by reference
ada4a 4ea6b20
`config`: introduce `MaybeConfig` type alias
ada4a 42e4037
avoid eager/useless `format!`s
ada4a 8018914
replace `std::iter::once(_)` with `[_]`
ada4a 93ad1fa
use `Itertools::format`
ada4a 5930e34
replace `.ok_or_else(|| anyhow::anyhow!` with `.context(`
ada4a 3a1133f
don't destructure tuple for comparison
ada4a 929f3d4
`expect` some lints
ada4a cee3a6a
clippy::field_reassign_with_default
ada4a 284ba8c
clippy::vec_init_then_push
ada4a ac4d7df
avoid `clippy::partialeq_to_none`
ada4a b722c5f
clippy::manual_find
ada4a 4382423
clippy::ptr_arg
ada4a 7443c6c
deref `Label` to `&str` directly
ada4a 8031a82
clippy::redundant_pattern_matching
ada4a 9b541d0
lints on FCP-related items
ada4a 45d88f8
clippy::unused_self
ada4a 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 @@ | ||
use flake |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | ||
inputs.flake-utils.url = "github:numtide/flake-utils"; | ||
|
||
outputs = | ||
{ nixpkgs, flake-utils, ... }: | ||
flake-utils.lib.eachDefaultSystem ( | ||
system: | ||
let | ||
pkgs = nixpkgs.legacyPackages.${system}; | ||
in | ||
{ | ||
devShells.default = pkgs.mkShell { | ||
packages = with pkgs; [ | ||
gcc | ||
cargo | ||
|
||
# for openssl-sys | ||
openssl | ||
pkg-config | ||
]; | ||
PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig"; # workaround for openssl-sys, see https://github.com/sfackler/rust-openssl/issues/1663 | ||
}; | ||
} | ||
); | ||
} |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name = "parser" | ||
version = "0.1.0" | ||
authors = ["Mark Rousskov <[email protected]>"] | ||
edition = "2021" | ||
edition = "2024" | ||
|
||
[dependencies] | ||
pulldown-cmark = "0.12.0" | ||
|
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.
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.
Could you remove the Nix changes from this PR, we are discussing those at #2179.