From 05d07bbc627b59fd07a8764a972b4aac63a46f53 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 16 May 2026 22:17:38 +0800 Subject: Use `default_program_path()` instead of `default_program_ident()` --- mingling_macros/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mingling_macros/src/lib.rs') diff --git a/mingling_macros/src/lib.rs b/mingling_macros/src/lib.rs index 7dd2fe2..d5bdf35 100644 --- a/mingling_macros/src/lib.rs +++ b/mingling_macros/src/lib.rs @@ -46,10 +46,15 @@ mod suggest; pub(crate) const DEFAULT_PROGRAM_NAME: &str = "ThisProgram"; +#[allow(dead_code)] pub(crate) fn default_program_ident() -> Ident { Ident::new(DEFAULT_PROGRAM_NAME, proc_macro2::Span::call_site()) } +pub(crate) fn default_program_path() -> proc_macro2::TokenStream { + quote::quote! { crate::ThisProgram } +} + // Global variables #[cfg(feature = "general_renderer")] pub(crate) static GENERAL_RENDERERS: Lazy>> = -- cgit