mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
refactor: Reduce code duplication
This commit is contained in:
parent
c32441e4ab
commit
682d206992
2 changed files with 25 additions and 16 deletions
|
@ -36,6 +36,7 @@ fn generate_table(table_out: &mut String, rules: impl IntoIterator<Item = Rule>)
|
|||
|
||||
let rule_name = rule.as_ref();
|
||||
|
||||
#[allow(clippy::or_fun_call)]
|
||||
table_out.push_str(&format!(
|
||||
"| {} | {} | {} | {} |",
|
||||
rule.code(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue