Skip to content

Commit add30b6

Browse files
committed
fix(schema): syntax error
1 parent 3dc441e commit add30b6

File tree

1 file changed

+3
-3
lines changed
  • framework_crates/bones_schema/macros/src

1 file changed

+3
-3
lines changed

framework_crates/bones_schema/macros/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ pub fn derive_has_schema(input: TokenStream) -> TokenStream {
282282

283283
let register_schema = if input.generic_params().is_some() {
284284
quote! {
285-
static S: OnceLock<RwLock<HashMap<TypeId, &'static Schema>>> = OnceLock::new();
285+
static S: OnceLock<RwLock<HashMap<TypeId, &'static #schema_mod::Schema>>> = OnceLock::new();
286286
let schema = {
287287
S.get_or_init(Default::default)
288288
.read()
@@ -395,11 +395,11 @@ pub fn derive_has_schema(input: TokenStream) -> TokenStream {
395395
quote! {
396396
unsafe impl<#impl_bounds> #schema_mod::HasSchema for #name<#struct_params> {
397397
fn schema() -> &'static #schema_mod::Schema {
398-
use ::std::sync::{OnceLock};
398+
use ::std::sync::OnceLock;
399399
use ::std::any::TypeId;
400400
use bones_utils::HashMap;
401401
use parking_lot::RwLock;
402-
static S: OnceLock<RwLock<HashMap<TypeId, &'static Schema>>> = OnceLock::new();
402+
static S: OnceLock<RwLock<HashMap<TypeId, &'static #schema_mod::Schema>>> = OnceLock::new();
403403
let schema = {
404404
S.get_or_init(Default::default)
405405
.read()

0 commit comments

Comments
 (0)