aboutsummaryrefslogtreecommitdiff
path: root/crates/tools
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-09-16 01:06:56 +0100
committerAleksey Kladov <[email protected]>2018-09-16 01:06:56 +0100
commitba0bfeee12e19da40b5eabc8d0408639af10e96f (patch)
tree3fc8c8a4104b9614f831be70d34544790b84c949 /crates/tools
parent5b70e5cf0c96c1de02b86b535ab8441f1e1b0d32 (diff)
fix derecated call
Diffstat (limited to 'crates/tools')
-rw-r--r--crates/tools/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/tools/src/main.rs b/crates/tools/src/main.rs
index 597d07d80..f8b840718 100644
--- a/crates/tools/src/main.rs
+++ b/crates/tools/src/main.rs
@@ -86,7 +86,7 @@ fn render_template(template: &str) -> Result<String> {
86 let mut tera = tera::Tera::default(); 86 let mut tera = tera::Tera::default();
87 tera.add_raw_template("grammar", &template) 87 tera.add_raw_template("grammar", &template)
88 .map_err(|e| format_err!("template error: {:?}", e))?; 88 .map_err(|e| format_err!("template error: {:?}", e))?;
89 tera.register_global_function("concat", Box::new(concat)); 89 tera.register_function("concat", Box::new(concat));
90 tera.register_filter("camel", |arg, _| { 90 tera.register_filter("camel", |arg, _| {
91 Ok(arg.as_str().unwrap().to_camel_case().into()) 91 Ok(arg.as_str().unwrap().to_camel_case().into())
92 }); 92 });
@@ -193,7 +193,7 @@ fn install_code_extension() -> Result<()> {
193 run("cargo install --path crates/server --force", ".")?; 193 run("cargo install --path crates/server --force", ".")?;
194 if cfg!(windows) { 194 if cfg!(windows) {
195 run(r"cmd.exe /c npm.cmd install", "./code")?; 195 run(r"cmd.exe /c npm.cmd install", "./code")?;
196 } else { 196 } else {
197 run(r"npm install", "./code")?; 197 run(r"npm install", "./code")?;
198 } 198 }
199 run(r"node ./node_modules/vsce/out/vsce package", "./code")?; 199 run(r"node ./node_modules/vsce/out/vsce package", "./code")?;