4

Fix `empty_line_after_outer_attribute` false positive by smoelius · Pull Request...

 2 years ago
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.
neoserver,ios ssh client

Contributor

@smoelius smoelius commented 7 days ago

edited by xFrednet

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

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK