serde: formatting
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
dddfa1164b
commit
1185458719
@ -30,8 +30,8 @@ pub mod epoch_as_rfc3339 {
|
|||||||
S: Serializer,
|
S: Serializer,
|
||||||
{
|
{
|
||||||
use serde::ser::Error;
|
use serde::ser::Error;
|
||||||
let s = proxmox_time::epoch_to_rfc3339(*epoch)
|
let s =
|
||||||
.map_err(|err| Error::custom(err.to_string()))?;
|
proxmox_time::epoch_to_rfc3339(*epoch).map_err(|err| Error::custom(err.to_string()))?;
|
||||||
|
|
||||||
serializer.serialize_str(&s)
|
serializer.serialize_str(&s)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user