mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-30 16:17:25 +00:00
Remove #[serde(repr = "map")]
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user