diff options
Diffstat (limited to 'mingling_macros/src/dispatcher.rs')
| -rw-r--r-- | mingling_macros/src/dispatcher.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mingling_macros/src/dispatcher.rs b/mingling_macros/src/dispatcher.rs index 9724fd1..e327d6b 100644 --- a/mingling_macros/src/dispatcher.rs +++ b/mingling_macros/src/dispatcher.rs @@ -208,10 +208,13 @@ pub fn register_dispatcher(input: TokenStream) -> TokenStream { // Register node info in the global collection at compile time // Format: "node.name:DispatcherType:EntryName" - COMPILE_TIME_DISPATCHERS.lock().unwrap().insert(format!( - "{}:{}:{}", - node_name_str, dispatcher_type, entry_name - )); + crate::get_global_set(&COMPILE_TIME_DISPATCHERS) + .lock() + .unwrap() + .insert(format!( + "{}:{}:{}", + node_name_str, dispatcher_type, entry_name + )); let expanded = quote! { #[doc(hidden)] |
