Skip to content

Commit

Permalink
fix oops
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgb committed May 3, 2024
1 parent 7a95840 commit 2959ce0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stateroom-wasm/stateroom-wasm-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fn stateroom_wasm_impl(item: &proc_macro2::TokenStream) -> proc_macro2::TokenStr
}

// Instance-global stateroom service.
static mut SERVER_STATE: Option<$crate::WrappedStateroomService<#name>> = None;
static mut SERVER_STATE: Option<stateroom_wasm::WrappedStateroomService<#name>> = None;

#[no_mangle]
pub static STATEROOM_API_VERSION: i32 = 1;
Expand All @@ -53,7 +53,7 @@ fn stateroom_wasm_impl(item: &proc_macro2::TokenStream) -> proc_macro2::TokenStr
match SERVER_STATE.as_mut() {
Some(s) => s,
None => {
let s = $crate::WrappedStateroomService::new(#name::default(), ffi::stateroom_send);
let s = stateroom_wasm::WrappedStateroomService::new(#name::default(), ffi::stateroom_send);
SERVER_STATE.replace(s);
SERVER_STATE.as_mut().unwrap()
}
Expand Down

0 comments on commit 2959ce0

Please sign in to comment.