Skip to content

Commit 0cf35ae

Browse files
committed
add completions for clippy lint in attributes
Signed-off-by: Benjamin Coenen <[email protected]>
1 parent 8e41fb4 commit 0cf35ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xtask/src/codegen/gen_lint_completions.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ fn generate_descriptor_clippy(path: &Path) -> Result<proc_macro2::TokenStream> {
8787
let prefix_to_strip = r#""What it does": ""#;
8888
let suffix_to_strip = r#"","#;
8989

90-
clippy_lints.last_mut().expect("clippy lint must already exist").help = line
90+
let clippy_lint = clippy_lints.last_mut().expect("clippy lint must already exist");
91+
clippy_lint.help = line
9192
.strip_prefix(prefix_to_strip)
9293
.expect("should be prefixed by what it does")
9394
.strip_suffix(suffix_to_strip)

0 commit comments

Comments
 (0)