mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-11-15 01:44:06 +00:00
Merge branch 'BlackDex-fix-remaining-inline'
This commit is contained in:
commit
dd5e4cec73
@ -1222,7 +1222,7 @@ fn to_json<'reg, 'rc>(
|
|||||||
) -> HelperResult {
|
) -> HelperResult {
|
||||||
let param = h.param(0).ok_or_else(|| RenderError::new("Expected 1 parameter for \"to_json\""))?.value();
|
let param = h.param(0).ok_or_else(|| RenderError::new("Expected 1 parameter for \"to_json\""))?.value();
|
||||||
let json = serde_json::to_string(param)
|
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)?;
|
out.write(&json)?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user