mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-29 23:09:49 +00:00
Fixed various issues with combinding flatten and deny_unknown_fields
This commit is contained in:
1 parent
6627540dd6
commit
5457394f5b
2 files changed
+10
-10
No files matched your search
+1
-1
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user