mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
take &Path
instead of PathBuf
This commit is contained in:
parent
9d9e637ef3
commit
2c4cfb297e
3 changed files with 5 additions and 5 deletions
|
@ -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)?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue