Fixed various issues with combinding flatten and deny_unknown_fields

This commit is contained in:
Jan Michael Auer authored and Armin Ronacher committed 2018-03-16 23:05:48 +01:00
1 parent 6627540dd6
commit 5457394f5b
2 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -258,7 +258,7 @@ macro_rules! declare_error_trait {
/// Raised when a `Deserialize` struct type recieved a field with an
/// unrecognized name but the names are not actually known because of
/// flattening.
fn unknow_field_in_flattened_structure(field: &str) -> Self {
fn unknown_field_in_flattened_structure(field: &str) -> Self {
Error::custom(format_args!("unknown field `{}`", field))
}