You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0308]: mismatched types
--> src/db/rtc.rs:36:17
|
36 | #[derive(Debug,Serialize,Deserialize)]
| ^^^^^^^^^ expected struct `chrono::datetime::DateTime`, found enum `std::option::Option`
|
= note: expected type `&chrono::datetime::DateTime<chrono::offset::utc::Utc>`
found type `&'__a std::option::Option<chrono::datetime::DateTime<chrono::offset::utc::Utc>>`
error[E0308]:match arms have incompatible types
--> src/db/rtc.rs:36:28
|
36 | #[derive(Debug,Serialize,Deserialize)]
| -----------
| |
| expected enum `std::option::Option`, found struct `chrono::datetime::DateTime`
| match arm with an incompatible type
| in this macro invocation
|
= note: expected type `std::option::Option<chrono::datetime::DateTime<_>>`
found type `chrono::datetime::DateTime<_>`
error[E0308]:match arms have incompatible types
--> src/db/rtc.rs:36:28
|
36 | #[derive(Debug,Serialize,Deserialize)]
| -----------
| |
| expected enum `std::option::Option`, found struct `chrono::datetime::DateTime`
| match arm with an incompatible type
| in this macro invocation
|
= note: expected type `std::option::Option<chrono::datetime::DateTime<_>>`
found type `chrono::datetime::DateTime<_>`
The text was updated successfully, but these errors were encountered:
They all reuse current Serializers and Deserializers' Visitors.
quodlibetor
changed the title
Add Serialize/Deserialize for Option<DateTime>
Add Option<DateTime> outputs for various serde helpers (ts_seconds, etc)
Jan 29, 2019
The following doesn't work now:
The text was updated successfully, but these errors were encountered: