mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-12 13:11:02 +00:00
Always check flatten assertions
This commit is contained in:
@@ -45,7 +45,7 @@ fn check_getter(cx: &Ctxt, cont: &Container) {
|
||||
fn check_flatten(cx: &Ctxt, cont: &Container) {
|
||||
match cont.data {
|
||||
Data::Enum(_) => {
|
||||
debug_assert!(!cont.attrs.has_flatten());
|
||||
assert!(!cont.attrs.has_flatten());
|
||||
}
|
||||
Data::Struct(_, _) => {
|
||||
for field in cont.data.all_fields() {
|
||||
|
||||
Reference in New Issue
Block a user