Fix `empty_line_after_outer_attribute` false positive by smoelius · Pull Request...
source link: https://github.com/rust-lang/rust-clippy/pull/8892
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
This PR fixes a false positive in empty_line_after_outer_attribute
.
Here is a minimal example that trigger the FP:
#[derive(clap::Parser)]
#[clap(after_help = "This ia a help message.
You're welcome.
")]
pub struct Args;
changelog: PF: [empty_line_after_outer_attribute
]: No longer lints empty lines in inner string values.
Recommend
-
5
Copy link Contributor smoelius c...
-
7
New issue Add format_in_format_args and to_string_in_format_args lints #7743
-
6
clippy_utils/src/higher.rs ...
-
8
Copy link Contributor smoelius ...
-
4
New issue Add llvm-13 case to llvm_version #17
-
8
New issue Add llvm_version function (resolves #13) #14
-
7
New issue Add try_ variants of Assert methods #128
-
10
New issue Implement --failure-mode option #91
-
3
New issue Test with both stable and nightly in CI #194
-
0
Conversation Contributor
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK