From 2d0aae4b2d595ced100f7a2ec8d13b872a5eb65e Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 10 Aug 2026 16:19:45 +0800 Subject: refactor: simplify macro parsing code and fix clippy warnings --- mingling_macros/src/func/group_structural.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mingling_macros/src/func/group_structural.rs') 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)) } } } -- cgit