Enum deserialization API

This commit is contained in:
David Tolnay committed 2016-08-23 22:17:28 -04:00
1 parent 123e040189
commit 85f1bf0259
6 files changed
+69 -77

No files matched your search

+1 -1
View File
@@ -426,7 +426,7 @@ impl Deserializer for BytesDeserializer {
self.deserialize(visitor)
}
fn deserialize_enum<__V>(&mut self, _: &str, _: &[&str], _visitor: __V)
-> Result<__V::Value, Self::Error> where __V: de::EnumVisitor {
-> Result<__V::Value, Self::Error> where __V: de::Visitor {
Err(Error)
}
}