mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-26 02:11:54 +00:00
fix flatten handling
This commit is contained in:
@@ -81,10 +81,10 @@ impl ChildInfo {
|
|||||||
.attrs
|
.attrs
|
||||||
.iter()
|
.iter()
|
||||||
.filter(|attr| attr.path.is_ident("serde"))
|
.filter(|attr| attr.path.is_ident("serde"))
|
||||||
.filter_map(|attr| syn::parse2::<Path>(attr.tokens.clone()).ok())
|
.filter_map(|attr| attr.parse_args::<Path>().ok())
|
||||||
.any(|path| path.is_ident("flatten"))
|
.any(|path| path.is_ident("flatten"))
|
||||||
{
|
{
|
||||||
continue;
|
None
|
||||||
} else {
|
} else {
|
||||||
Some(Lit::Str(get_accessor(
|
Some(Lit::Str(get_accessor(
|
||||||
serde_rename_all,
|
serde_rename_all,
|
||||||
|
|||||||
Reference in New Issue
Block a user