serde: formatting

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2021-12-07 11:52:39 +01:00
parent dddfa1164b
commit 1185458719

View File

@ -30,8 +30,8 @@ pub mod epoch_as_rfc3339 {
S: Serializer,
{
use serde::ser::Error;
let s = proxmox_time::epoch_to_rfc3339(*epoch)
.map_err(|err| Error::custom(err.to_string()))?;
let s =
proxmox_time::epoch_to_rfc3339(*epoch).map_err(|err| Error::custom(err.to_string()))?;
serializer.serialize_str(&s)
}