Use correct rustfmt for codegen

closes #1569
This commit is contained in:
Aleksey Kladov 2020-01-10 11:23:11 +01:00
parent b77a7e29a5
commit fd394ff424
4 changed files with 32 additions and 35 deletions

View file

@ -152,7 +152,7 @@ fn generate_ast(grammar: AstSrc<'_>) -> Result<String> {
#(#enums)*
};
let pretty = codegen::reformat(ast)?;
let pretty = crate::reformat(ast)?;
Ok(pretty)
}
@ -265,7 +265,7 @@ fn generate_syntax_kinds(grammar: KindsSrc<'_>) -> Result<String> {
}
};
codegen::reformat(ast)
crate::reformat(ast)
}
fn to_upper_snake_case(s: &str) -> String {