disallow indexing into flattened params

This commit is contained in:
Aiden McClelland
2024-03-14 17:52:08 -06:00
parent 3dc11afd46
commit df65275c2c

View File

@@ -84,7 +84,7 @@ impl ChildInfo {
.filter_map(|attr| syn::parse2::<Path>(attr.tokens.clone()).ok()) .filter_map(|attr| syn::parse2::<Path>(attr.tokens.clone()).ok())
.any(|path| path.is_ident("flatten")) .any(|path| path.is_ident("flatten"))
{ {
None continue;
} else { } else {
Some(Lit::Str(get_accessor( Some(Lit::Str(get_accessor(
serde_rename_all, serde_rename_all,