Skip to content

Commit

Permalink
Replace deserialize_any with deserialize_str in serde macro
Browse files Browse the repository at this point in the history
Fixes the same issue as in #466
  • Loading branch information
xamgore authored and jhpratt committed Jun 13, 2023
1 parent 0e99ae7 commit b5cf98c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions time-macros/src/serde_format_description.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pub(crate) fn build(
deserializer: D
) -> Result<Option<__TimeSerdeType>, D::Error> {
deserializer
.deserialize_any(Visitor)
.deserialize_str(Visitor)
.map(Some)
}

Expand Down Expand Up @@ -94,7 +94,7 @@ pub(crate) fn build(
deserializer: D
) -> Result<__TimeSerdeType, D::Error> {
use ::serde::Deserialize;
deserializer.deserialize_any(Visitor)
deserializer.deserialize_str(Visitor)
}
}
} else {
Expand Down

0 comments on commit b5cf98c

Please sign in to comment.