take &Path instead of PathBuf

This commit is contained in:
Muhammad Mominul Huque 2018-10-16 15:36:53 +06:00
parent 9d9e637ef3
commit 2c4cfb297e
No known key found for this signature in database
GPG key ID: 9D472E8B36098956
3 changed files with 5 additions and 5 deletions

View file

@ -40,8 +40,8 @@ fn main() -> Result<()> {
fn run_gen_command(name: &str, verify: bool) -> Result<()> {
match name {
"gen-kinds" => {
update(&project_root().join(SYNTAX_KINDS), &render_template(project_root().join(SYNTAX_KINDS_TEMPLATE))?, verify)?;
update(&project_root().join(AST), &render_template(project_root().join(AST_TEMPLATE))?, verify)?;
update(&project_root().join(SYNTAX_KINDS), &render_template(&project_root().join(SYNTAX_KINDS_TEMPLATE))?, verify)?;
update(&project_root().join(AST), &render_template(&project_root().join(AST_TEMPLATE))?, verify)?;
},
"gen-tests" => {
gen_tests(verify)?