diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-10 16:19:45 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-10 16:19:45 +0800 |
| commit | 2d0aae4b2d595ced100f7a2ec8d13b872a5eb65e (patch) | |
| tree | 9df306e1185470655f3ed43fad866cf02430160f /mingling_macros/src/func/group_structural.rs | |
| parent | 61b770ca958afa7e5eca4c50f5e06bdf3ed7a94a (diff) | |
refactor: simplify macro parsing code and fix clippy warnings
Diffstat (limited to 'mingling_macros/src/func/group_structural.rs')
| -rw-r--r-- | mingling_macros/src/func/group_structural.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mingling_macros/src/func/group_structural.rs b/mingling_macros/src/func/group_structural.rs index 2bd2f83..3e6dbc5 100644 --- a/mingling_macros/src/func/group_structural.rs +++ b/mingling_macros/src/func/group_structural.rs @@ -115,10 +115,10 @@ impl syn::parse::Parse for GroupStructuralInput { let alias: Ident = input.parse()?; let _eq: syn::Token![=] = input.parse()?; let type_path: TypePath = input.parse()?; - Ok(GroupStructuralInput::Aliased { alias, type_path }) + Ok(Self::Aliased { alias, type_path }) } else { let type_path: TypePath = input.parse()?; - Ok(GroupStructuralInput::Plain(type_path)) + Ok(Self::Plain(type_path)) } } } |
