fix derecated call

This commit is contained in:
Aleksey Kladov 2018-09-16 03:06:56 +03:00
parent 5b70e5cf0c
commit ba0bfeee12

View file

@ -86,7 +86,7 @@ fn render_template(template: &str) -> Result<String> {
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())
});