mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 04:23:25 +00:00
fix derecated call
This commit is contained in:
parent
5b70e5cf0c
commit
ba0bfeee12
1 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@ fn render_template(template: &str) -> Result<String> {
|
||||||
let mut tera = tera::Tera::default();
|
let mut tera = tera::Tera::default();
|
||||||
tera.add_raw_template("grammar", &template)
|
tera.add_raw_template("grammar", &template)
|
||||||
.map_err(|e| format_err!("template error: {:?}", e))?;
|
.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, _| {
|
tera.register_filter("camel", |arg, _| {
|
||||||
Ok(arg.as_str().unwrap().to_camel_case().into())
|
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", ".")?;
|
run("cargo install --path crates/server --force", ".")?;
|
||||||
if cfg!(windows) {
|
if cfg!(windows) {
|
||||||
run(r"cmd.exe /c npm.cmd install", "./code")?;
|
run(r"cmd.exe /c npm.cmd install", "./code")?;
|
||||||
} else {
|
} else {
|
||||||
run(r"npm install", "./code")?;
|
run(r"npm install", "./code")?;
|
||||||
}
|
}
|
||||||
run(r"node ./node_modules/vsce/out/vsce package", "./code")?;
|
run(r"node ./node_modules/vsce/out/vsce package", "./code")?;
|
||||||
|
|
Loading…
Reference in a new issue