Standardize behavior of missing fields

This commit is contained in:
David Tolnay committed 2017-01-20 00:44:43 -08:00
1 parent 88149fc0c3
commit 42bc63bed8
4 files changed
+47 -42

No files matched your search

+1 -1
View File
@@ -928,7 +928,7 @@ fn expr_is_missing(attrs: &attr::Field) -> Tokens {
match attrs.deserialize_with() {
None => {
quote! {
try!(visitor.missing_field(#name))
try!(_serde::de::private::missing_field(#name))
}
}
Some(_) => {