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.rs | |
| parent | 61b770ca958afa7e5eca4c50f5e06bdf3ed7a94a (diff) | |
refactor: simplify macro parsing code and fix clippy warnings
Diffstat (limited to 'mingling_macros/src/func/group.rs')
| -rw-r--r-- | mingling_macros/src/func/group.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mingling_macros/src/func/group.rs b/mingling_macros/src/func/group.rs index edb1fe1..8ca46d9 100644 --- a/mingling_macros/src/func/group.rs +++ b/mingling_macros/src/func/group.rs @@ -33,10 +33,10 @@ impl Parse for GroupInput { let alias: Ident = input.parse()?; let _eq: syn::Token![=] = input.parse()?; let type_path: TypePath = input.parse()?; - Ok(GroupInput::Aliased { alias, type_path }) + Ok(Self::Aliased { alias, type_path }) } else { let type_path: TypePath = input.parse()?; - Ok(GroupInput::Plain(type_path)) + Ok(Self::Plain(type_path)) } } } |
