Allow linking to individual rules (#4158)

This commit is contained in:
Calum Young 2023-05-04 18:43:53 +01:00 committed by GitHub
parent d78287540d
commit 890e630c41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ fn generate_table(table_out: &mut String, rules: impl IntoIterator<Item = Rule>,
#[allow(clippy::or_fun_call)]
table_out.push_str(&format!(
"| {}{} | {} | {} | {} |",
"| {0}{1} {{ #{0}{1} }} | {2} | {3} | {4} |",
linter.common_prefix(),
linter.code_for_rule(rule).unwrap(),
rule.explanation()