aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ser.rs b/src/ser.rs
index fd72930..b4737cc 100644
--- a/src/ser.rs
+++ b/src/ser.rs
@@ -1262,11 +1262,11 @@ impl<'a, 'b> ser::Serializer for DateStrEmitter<'a, 'b> {
where
T: ser::Serialize,
{
- Err(Error::KeyNotString)
+ Err(Error::DateInvalid)
}
fn serialize_unit(self) -> Result<(), Self::Error> {
- Err(Error::KeyNotString)
+ Err(Error::DateInvalid)
}
fn serialize_unit_struct(self, _name: &'static str) -> Result<(), Self::Error> {