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/lib.rs | |
| parent | c48149a86eafcca967ef9aa947864fb4d0c727ea (diff) | |
Use `default_program_path()` instead of `default_program_ident()`
Diffstat (limited to 'mingling_macros/src/lib.rs')
| -rw-r--r-- | mingling_macros/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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<Mutex<BTreeSet<String>>> = |
