We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e41fb4 commit 0cf35aeCopy full SHA for 0cf35ae
xtask/src/codegen/gen_lint_completions.rs
@@ -87,7 +87,8 @@ fn generate_descriptor_clippy(path: &Path) -> Result<proc_macro2::TokenStream> {
87
let prefix_to_strip = r#""What it does": ""#;
88
let suffix_to_strip = r#"","#;
89
90
- clippy_lints.last_mut().expect("clippy lint must already exist").help = line
+ let clippy_lint = clippy_lints.last_mut().expect("clippy lint must already exist");
91
+ clippy_lint.help = line
92
.strip_prefix(prefix_to_strip)
93
.expect("should be prefixed by what it does")
94
.strip_suffix(suffix_to_strip)
0 commit comments