mirror of
https://github.com/astral-sh/ruff
synced 2026-01-08 15:14:19 -05:00
refactor: Reduce code duplication
This commit is contained in:
committed by
Charlie Marsh
parent
c32441e4ab
commit
682d206992
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user