Standardize behavior of missing fields

This commit is contained in:
David Tolnay
2017-01-20 00:18:11 -08:00
parent 88149fc0c3
commit 42bc63bed8
4 changed files with 47 additions and 42 deletions
+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(_) => {