Pass struct field names to deserializer

This commit is contained in:
Erick Tryzelaar
2015-07-03 19:39:27 -07:00
parent affa9382be
commit 5dae700aec
6 changed files with 120 additions and 46 deletions
+4 -1
View File
@@ -398,7 +398,10 @@ mod deserializer {
}
}
fn visit_struct<V>(&mut self, name: &str, mut visitor: V) -> Result<V::Value, Error>
fn visit_struct<V>(&mut self,
name: &str,
_fields: &'static [&'static str],
mut visitor: V) -> Result<V::Value, Error>
where V: de::Visitor,
{
match self.stack.pop() {