Fixed various issues with combinding flatten and deny_unknown_fields

This commit is contained in:
Jan Michael Auer
2018-03-15 16:17:54 +01:00
committed by Armin Ronacher
parent 6627540dd6
commit 5457394f5b
2 changed files with 10 additions and 10 deletions
+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))
}