@@ -358,7 +358,13 @@ impl VersionedField {
358358 }
359359 }
360360
361- pub fn generate_for_json_path ( & self , next_version : & VersionDefinition ) -> Option < TokenStream > {
361+ pub fn generate_for_json_path (
362+ & self ,
363+ next_version : & VersionDefinition ,
364+ mod_gen_ctx : ModuleGenerationContext < ' _ > ,
365+ ) -> Option < TokenStream > {
366+ let versioned_path = & * mod_gen_ctx. crates . versioned ;
367+
362368 match ( & self . changes , self . nested ) {
363369 // If there are no changes and the field also not marked as nested, there is no need to
364370 // generate a path variable for that field as no tracked values need to be applied/inserted
@@ -373,7 +379,7 @@ impl VersionedField {
373379 let field_ident = format_ident ! ( "__sv_{}_path" , & self . ident. as_ident( ) ) ;
374380 let child_string = & self . ident . to_string ( ) ;
375381 Some ( quote ! {
376- let #field_ident = :: stackable_versioned :: jthong_path( parent, #child_string) ;
382+ let #field_ident = #versioned_path :: jthong_path( parent, #child_string) ;
377383 } )
378384 }
379385 ( Some ( changes) , _) => {
@@ -385,7 +391,7 @@ impl VersionedField {
385391 let child_string = ident. to_string ( ) ;
386392
387393 Some ( quote ! {
388- let #field_ident = :: stackable_versioned :: jthong_path( parent, #child_string) ;
394+ let #field_ident = #versioned_path :: jthong_path( parent, #child_string) ;
389395 } )
390396 }
391397 _ => None ,
0 commit comments