Main: Fix whitespace in arguments list of calls to register_helper
This commit is contained in:
parent
5be5698cd8
commit
5b9f644db6
1 changed files with 4 additions and 4 deletions
|
@ -48,7 +48,7 @@ fn main() -> Result<()> {
|
||||||
data_map.insert(secret_key.to_string(), Value::String(secret_value.trim().to_string()));
|
data_map.insert(secret_key.to_string(), Value::String(secret_value.trim().to_string()));
|
||||||
}
|
}
|
||||||
|
|
||||||
handlebars.register_helper("uri_encode_user_info",Box::new(|helper: &Helper, _: &Handlebars, _: &Context, _: &mut RenderContext, out: &mut dyn Output| -> HelperResult {
|
handlebars.register_helper("uri_encode_user_info", Box::new(|helper: &Helper, _: &Handlebars, _: &Context, _: &mut RenderContext, out: &mut dyn Output| -> HelperResult {
|
||||||
let parameter = helper.param(0).ok_or(RenderErrorReason::ParamNotFoundForIndex("uri_encode_user_info", 0))?;
|
let parameter = helper.param(0).ok_or(RenderErrorReason::ParamNotFoundForIndex("uri_encode_user_info", 0))?;
|
||||||
let parameter_value = parameter.value().render();
|
let parameter_value = parameter.value().render();
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ fn main() -> Result<()> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}));
|
}));
|
||||||
|
|
||||||
handlebars.register_helper("uri_encode_path",Box::new(|helper: &Helper, _: &Handlebars, _: &Context, _: &mut RenderContext, out: &mut dyn Output| -> HelperResult {
|
handlebars.register_helper("uri_encode_path", Box::new(|helper: &Helper, _: &Handlebars, _: &Context, _: &mut RenderContext, out: &mut dyn Output| -> HelperResult {
|
||||||
let parameter = helper.param(0).ok_or(RenderErrorReason::ParamNotFoundForIndex("uri_encode_path", 0))?;
|
let parameter = helper.param(0).ok_or(RenderErrorReason::ParamNotFoundForIndex("uri_encode_path", 0))?;
|
||||||
let parameter_value = parameter.value().render();
|
let parameter_value = parameter.value().render();
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ fn main() -> Result<()> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}));
|
}));
|
||||||
|
|
||||||
handlebars.register_helper("uri_encode_component",Box::new(|helper: &Helper, _: &Handlebars, _: &Context, _: &mut RenderContext, out: &mut dyn Output| -> HelperResult {
|
handlebars.register_helper("uri_encode_component", Box::new(|helper: &Helper, _: &Handlebars, _: &Context, _: &mut RenderContext, out: &mut dyn Output| -> HelperResult {
|
||||||
let parameter = helper.param(0).ok_or(RenderErrorReason::ParamNotFoundForIndex("uri_encode_component", 0))?;
|
let parameter = helper.param(0).ok_or(RenderErrorReason::ParamNotFoundForIndex("uri_encode_component", 0))?;
|
||||||
let parameter_value = parameter.value().render();
|
let parameter_value = parameter.value().render();
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ fn main() -> Result<()> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}));
|
}));
|
||||||
|
|
||||||
handlebars.register_helper("json_encode_string",Box::new(|helper: &Helper, _: &Handlebars, _: &Context, _: &mut RenderContext, out: &mut dyn Output| -> HelperResult {
|
handlebars.register_helper("json_encode_string", Box::new(|helper: &Helper, _: &Handlebars, _: &Context, _: &mut RenderContext, out: &mut dyn Output| -> HelperResult {
|
||||||
let parameter = helper.param(0).ok_or(RenderErrorReason::ParamNotFoundForIndex("json_encode_string", 0))?;
|
let parameter = helper.param(0).ok_or(RenderErrorReason::ParamNotFoundForIndex("json_encode_string", 0))?;
|
||||||
let parameter_value = parameter.value().render();
|
let parameter_value = parameter.value().render();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue