Skip to content

Commit 265b152

Browse files
committed
rustfmt
1 parent c353c95 commit 265b152

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

cfgrammar/src/lib/yacc/grammar.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ where
154154

155155
let implicit_rule;
156156
let implicit_start_rule;
157-
match ast_validation.yacc_kind().expect("is_valid() ensures Some(yacc_kind)") {
157+
match ast_validation
158+
.yacc_kind()
159+
.expect("is_valid() ensures Some(yacc_kind)")
160+
{
158161
YaccKind::Original(_) | YaccKind::Grmtools => {
159162
implicit_rule = None;
160163
implicit_start_rule = None;

cfgrammar/src/lib/yacc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub enum YaccKindResolver {
2222
/// Use `YaccKind` if the user doesn't specify `%grmtools` in their grammar
2323
Default(YaccKind),
2424
/// The user must specify `%grmtools` in their grammars or we throw an error
25-
NoDefault
25+
NoDefault,
2626
}
2727

2828
/// The particular Yacc variant this grammar makes use of.

0 commit comments

Comments
 (0)