diff options
| author | Vincent Prouillet <vincent@wearewizards.io> | 2017-04-24 21:48:02 +0900 | 
|---|---|---|
| committer | Vincent Prouillet <vincent@wearewizards.io> | 2017-04-24 22:13:38 +0900 | 
| commit | 099d7b66836bc994b26e78b4066f28f32b82ffe9 (patch) | |
| tree | ac91ac55ae3f119165c1b4425754e5de76c763fa /src/ser.rs | |
| parent | 9942435bbcd6a41bf39bd298e93b7b57aaa87b6d (diff) | |
| download | milf-rs-099d7b66836bc994b26e78b4066f28f32b82ffe9.tar.gz milf-rs-099d7b66836bc994b26e78b4066f28f32b82ffe9.zip | |
Allow to deserialize/serialize into enums
Close #164
Diffstat (limited to 'src/ser.rs')
| -rw-r--r-- | src/ser.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| @@ -423,7 +423,7 @@ impl<'a, 'b> ser::Serializer for &'b mut Serializer<'a> {                                _variant_index: u32,                                _variant: &'static str)                                -> Result<(), Self::Error> { -        Err(Error::UnsupportedType) +        self.serialize_str(_variant)      }      fn serialize_newtype_struct<T: ?Sized>(self, _name: &'static str, value: &T) |