Skip to content

Commit

Permalink
fix(proc-macros): adjusted references to rustato
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusborgeis committed Aug 11, 2024
1 parent cb1472c commit 08db012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rustato-proc-macros/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use proc_macro::TokenStream;
use quote::quote;
use syn::{parse_macro_input, Attribute, ItemStruct, LitStr};
use syn::{parse_macro_input, ItemStruct, LitStr};

#[proc_macro]
pub fn create_state(input: TokenStream) -> TokenStream {
Expand All @@ -12,7 +12,7 @@ pub fn create_state(input: TokenStream) -> TokenStream {
#[derive(Clone, Default)]
#struct_def

rustato_core::GLOBAL_STATE_MANAGER.register_state::<#struct_name>(stringify!(#struct_name), #struct_name::default());
rustato::GLOBAL_STATE_MANAGER.register_state::<#struct_name>(stringify!(#struct_name), #struct_name::default());
};

TokenStream::from(expanded)
Expand Down

0 comments on commit 08db012

Please sign in to comment.