mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-22 18:27:54 +00:00
Updated tests for flatten
This commit is contained in:
@@ -96,10 +96,11 @@ where
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Serialize, Deserialize)]
|
||||
#[serde(repr="map", unknown_fields_into="extra")]
|
||||
#[serde(repr="map")]
|
||||
struct CollectOther {
|
||||
a: u32,
|
||||
b: u32,
|
||||
#[serde(flatten)]
|
||||
extra: HashMap<String, u32>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user