refactor: Reduce code duplication

This commit is contained in:
Martin Fischer
2023-02-10 09:55:55 +01:00
committed by Charlie Marsh
parent c32441e4ab
commit 682d206992
2 changed files with 25 additions and 16 deletions

View File

@@ -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(),