diff options
author | Muhammad Mominul Huque <[email protected]> | 2018-10-16 10:36:53 +0100 |
---|---|---|
committer | Muhammad Mominul Huque <[email protected]> | 2018-10-16 10:36:53 +0100 |
commit | 2c4cfb297ec59625310023796b65e3dd48f1e76a (patch) | |
tree | e6d6e34aba7d37f6d3c0e1056838e073aa185881 /crates/tools/tests | |
parent | 9d9e637ef39cbc00eaebad93294a60ccfd3405eb (diff) |
take `&Path` instead of `PathBuf`
Diffstat (limited to 'crates/tools/tests')
-rw-r--r-- | crates/tools/tests/cli.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/tools/tests/cli.rs b/crates/tools/tests/cli.rs index d0ed60f7a..f507d80a2 100644 --- a/crates/tools/tests/cli.rs +++ b/crates/tools/tests/cli.rs | |||
@@ -4,10 +4,10 @@ use tools::{AST, AST_TEMPLATE, SYNTAX_KINDS, SYNTAX_KINDS_TEMPLATE, render_templ | |||
4 | 4 | ||
5 | #[test] | 5 | #[test] |
6 | fn verify_template_generation() { | 6 | fn verify_template_generation() { |
7 | if let Err(error) = update(&project_root().join(SYNTAX_KINDS), &render_template(project_root().join(SYNTAX_KINDS_TEMPLATE)).unwrap(), true) { | 7 | if let Err(error) = update(&project_root().join(SYNTAX_KINDS), &render_template(&project_root().join(SYNTAX_KINDS_TEMPLATE)).unwrap(), true) { |
8 | panic!("{}. Please update it by running `cargo gen-kinds`", error); | 8 | panic!("{}. Please update it by running `cargo gen-kinds`", error); |
9 | } | 9 | } |
10 | if let Err(error) = update(&project_root().join(AST), &render_template(project_root().join(AST_TEMPLATE)).unwrap(), true) { | 10 | if let Err(error) = update(&project_root().join(AST), &render_template(&project_root().join(AST_TEMPLATE)).unwrap(), true) { |
11 | panic!("{}. Please update it by running `cargo gen-kinds`", error); | 11 | panic!("{}. Please update it by running `cargo gen-kinds`", error); |
12 | } | 12 | } |
13 | } | 13 | } |