mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-12 02:41:04 +00:00
Fixed various issues with combinding flatten and deny_unknown_fields
This commit is contained in:
committed by
Armin Ronacher
parent
6627540dd6
commit
5457394f5b
+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