Updated tests for flatten

This commit is contained in:
Armin Ronacher
2018-03-16 01:26:57 +01:00
parent ebf80ac965
commit b4ef7ac323
3 changed files with 2 additions and 40 deletions
+2 -1
View File
@@ -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>,
}