From ba0bfeee12e19da40b5eabc8d0408639af10e96f Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 16 Sep 2018 03:06:56 +0300 Subject: fix derecated call --- crates/tools/src/main.rs | 4 ++-- 1 file 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 { let mut tera = tera::Tera::default(); tera.add_raw_template("grammar", &template) .map_err(|e| format_err!("template error: {:?}", e))?; - tera.register_global_function("concat", Box::new(concat)); + tera.register_function("concat", Box::new(concat)); tera.register_filter("camel", |arg, _| { Ok(arg.as_str().unwrap().to_camel_case().into()) }); @@ -193,7 +193,7 @@ fn install_code_extension() -> Result<()> { run("cargo install --path crates/server --force", ".")?; if cfg!(windows) { run(r"cmd.exe /c npm.cmd install", "./code")?; - } else { + } else { run(r"npm install", "./code")?; } run(r"node ./node_modules/vsce/out/vsce package", "./code")?; -- cgit v1.2.3