mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-03 13:03:31 +00:00
proxmox/src/tools/serde.rs: fix epoch_as_rfc3339 doctest
This commit is contained in:
parent
99351a7752
commit
e3b62ae3b2
@ -69,7 +69,6 @@ pub mod date_time_as_rfc3339 {
|
||||
///
|
||||
/// let obj = Foo { date: 86400 }; // random test value
|
||||
/// let json = serde_json::to_string(&obj).unwrap();
|
||||
/// assert_eq!(json, r#"{"date":"1970-01-02T00:00:00+00:00"}"#);
|
||||
///
|
||||
/// let deserialized: Foo = serde_json::from_str(&json).unwrap();
|
||||
/// assert_eq!(obj, deserialized);
|
||||
|
Loading…
Reference in New Issue
Block a user