Skip to content
Snippets Groups Projects
Unverified Commit 80eb15d4 authored by BlackDex's avatar BlackDex Committed by Daniel García
Browse files

Fix remaning inline format

parent c36b870c
No related branches found
No related tags found
No related merge requests found
......@@ -1222,7 +1222,7 @@ fn to_json<'reg, 'rc>(
) -> HelperResult {
let param = h.param(0).ok_or_else(|| RenderError::new("Expected 1 parameter for \"to_json\""))?.value();
let json = serde_json::to_string(param)
.map_err(|e| RenderError::new(format!("Can't serialize parameter to JSON: {}", e)))?;
.map_err(|e| RenderError::new(format!("Can't serialize parameter to JSON: {e}")))?;
out.write(&json)?;
Ok(())
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment