File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
framework_crates/bones_schema/macros/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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( )
You can’t perform that action at this time.
0 commit comments