Allow json missing fields to be treated as a null

Closes #34.
This commit is contained in:
Erick Tryzelaar committed 2015-03-12 20:44:16 -07:00
1 parent 5dd53e7ea3
commit dc87288f48
5 files changed
+82 -4

No files matched your search

+1 -3
View File
@@ -1192,9 +1192,7 @@ fn declare_visit_map(
quote_stmt!(cx,
let $field = match $field {
Some($field) => $field,
None => {
return Err(::serde::de::Error::missing_field_error($name_str));
}
None => try!(visitor.missing_field($name_str)),
};
)
})