Remove #[serde(repr = "map")]

This commit is contained in:
Armin Ronacher
2018-03-18 18:30:46 +01:00
parent d44f12907b
commit 58d52e784b
5 changed files with 7 additions and 68 deletions
-6
View File
@@ -79,12 +79,6 @@ impl<'a> Container<'a> {
},
}
if has_flatten && attrs.repr() != attr::ContainerRepr::Map {
cx.error(format!("#[serde(flatten)] requires \
#[serde(repr = \"map\")] on the container, but \
found #[serde(repr = \"{}\")]", attrs.repr()));
}
if has_flatten {
attrs.mark_has_flatten();
}