Fix a couple errors in DateStrEmitter (#368)
This commit is contained in:
parent
96cb061bec
commit
13107f621b
|
@ -1262,11 +1262,11 @@ impl<'a, 'b> ser::Serializer for DateStrEmitter<'a, 'b> {
|
||||||
where
|
where
|
||||||
T: ser::Serialize,
|
T: ser::Serialize,
|
||||||
{
|
{
|
||||||
Err(Error::KeyNotString)
|
Err(Error::DateInvalid)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn serialize_unit(self) -> Result<(), Self::Error> {
|
fn serialize_unit(self) -> Result<(), Self::Error> {
|
||||||
Err(Error::KeyNotString)
|
Err(Error::DateInvalid)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn serialize_unit_struct(self, _name: &'static str) -> Result<(), Self::Error> {
|
fn serialize_unit_struct(self, _name: &'static str) -> Result<(), Self::Error> {
|
||||||
|
|
Loading…
Reference in a new issue