diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-05-16 22:17:38 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-16 22:17:38 +0800 |
| commit | 05d07bbc627b59fd07a8764a972b4aac63a46f53 (patch) | |
| tree | 3ac865155220ce798964f1e0c95575e6dc0c5e9f /mingling_macros/src/pack.rs | |
| parent | c48149a86eafcca967ef9aa947864fb4d0c727ea (diff) | |
Use `default_program_path()` instead of `default_program_ident()`
Diffstat (limited to 'mingling_macros/src/pack.rs')
| -rw-r--r-- | mingling_macros/src/pack.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mingling_macros/src/pack.rs b/mingling_macros/src/pack.rs index 2242082..1c0bb7b 100644 --- a/mingling_macros/src/pack.rs +++ b/mingling_macros/src/pack.rs @@ -52,7 +52,7 @@ impl Parse for PackInput { } pub fn pack(input: TokenStream) -> TokenStream { - let default_program_ident = crate::default_program_ident(); + let default_program_path = crate::default_program_path(); // Parse the input let pack_input = syn::parse_macro_input!(input as PackInput); @@ -211,13 +211,13 @@ pub fn pack(input: TokenStream) -> TokenStream { #default_impl #register_impl - impl Into<mingling::AnyOutput<#default_program_ident>> for #type_name { - fn into(self) -> mingling::AnyOutput<#default_program_ident> { + impl Into<mingling::AnyOutput<#default_program_path>> for #type_name { + fn into(self) -> mingling::AnyOutput<#default_program_path> { mingling::AnyOutput::new(self) } } - impl From<#type_name> for mingling::ChainProcess<#default_program_ident> { + impl From<#type_name> for mingling::ChainProcess<#default_program_path> { fn from(value: #type_name) -> Self { mingling::AnyOutput::new(value).route_chain() } @@ -225,19 +225,19 @@ pub fn pack(input: TokenStream) -> TokenStream { impl #type_name { /// Converts the wrapper type into a `ChainProcess` for chaining operations. - pub fn to_chain(self) -> mingling::ChainProcess<#default_program_ident> { + pub fn to_chain(self) -> mingling::ChainProcess<#default_program_path> { mingling::AnyOutput::new(self).route_chain() } /// Converts the wrapper type into a `ChainProcess` for rendering operations. - pub fn to_render(self) -> mingling::ChainProcess<#default_program_ident> { + pub fn to_render(self) -> mingling::ChainProcess<#default_program_path> { mingling::AnyOutput::new(self).route_renderer() } } - impl ::mingling::Groupped<#default_program_ident> for #type_name { - fn member_id() -> #default_program_ident { - #default_program_ident::#type_name + impl ::mingling::Groupped<#default_program_path> for #type_name { + fn member_id() -> #default_program_path { + #default_program_path::#type_name } } } |
