diff options
Diffstat (limited to 'crates/tools/src/lib.rs')
-rw-r--r-- | crates/tools/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/tools/src/lib.rs b/crates/tools/src/lib.rs index 548b157dd..9a1b12a16 100644 --- a/crates/tools/src/lib.rs +++ b/crates/tools/src/lib.rs | |||
@@ -77,7 +77,7 @@ pub fn update(path: &Path, contents: &str, verify: bool) -> Result<()> { | |||
77 | Ok(()) | 77 | Ok(()) |
78 | } | 78 | } |
79 | 79 | ||
80 | pub fn render_template(template: PathBuf) -> Result<String> { | 80 | pub fn render_template(template: &Path) -> Result<String> { |
81 | let grammar: ron::value::Value = { | 81 | let grammar: ron::value::Value = { |
82 | let text = fs::read_to_string(project_root().join(GRAMMAR))?; | 82 | let text = fs::read_to_string(project_root().join(GRAMMAR))?; |
83 | ron::de::from_str(&text)? | 83 | ron::de::from_str(&text)? |