From 5b9f644db68a7d44d18d59d9b0ea980d9c9af7cd Mon Sep 17 00:00:00 2001 From: networkException Date: Tue, 24 Dec 2024 00:18:26 +0100 Subject: [PATCH] Main: Fix whitespace in arguments list of calls to register_helper --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8b5eb01..dfb7da5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -48,7 +48,7 @@ fn main() -> Result<()> { 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_value = parameter.value().render(); @@ -56,7 +56,7 @@ fn main() -> Result<()> { 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_value = parameter.value().render(); @@ -64,7 +64,7 @@ fn main() -> Result<()> { 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_value = parameter.value().render(); @@ -72,7 +72,7 @@ fn main() -> Result<()> { 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_value = parameter.value().render();