0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-11-18 07:53:32 +01:00

Fix remaning inline format

This commit is contained in:
BlackDex 2023-01-09 20:32:56 +01:00 committed by Daniel García
parent 42acb2ebb6
commit fa70b440d0
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A

View file

@ -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(())
} }