Enum deserialization API

This commit is contained in:
David Tolnay
2016-08-23 21:30:48 -04:00
parent 123e040189
commit 85f1bf0259
6 changed files with 69 additions and 77 deletions
+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)
}
}