-
Notifications
You must be signed in to change notification settings - Fork 148
RUST-2251 document and tidy up serde helpers #597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -496,31 +491,6 @@ impl<T: chrono::TimeZone> From<chrono::DateTime<T>> for crate::DateTime { | |||
} | |||
} | |||
|
|||
#[cfg(all(feature = "chrono-0_4", feature = "serde_with-3"))] | |||
impl<'de> serde_with::DeserializeAs<'de, chrono::DateTime<Utc>> for crate::DateTime { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DeserializeAs
/SerializeAs
are supposed to only be implemented for container types or converter types, not leaf value types; this was essentially tagging crate::DateTime
as a converter type for itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the updated docs look great! I have a few additional random suggestions from poking around in the generated docs: isabelatkinson@3c9ebc0
3c9ebc0
to
f721029
Compare
f721029
to
7b3ebec
Compare
Applied, thanks :). I can't seem to both fix the merge conflict and preserve the verified status of your patch but I think since it's verified with my key it's fine? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but I think since it's verified with my key it's fine?
yeah I think that should be fine!
RUST-2251
This adds toplevel documentation to the
serde_helpers
module; I also removed some now-redundant (and, I think, arguably incorrect)serde_with
trait impls from elsewhere and made it so that the converters can be used withoutserde_with
.