Skip to content

Commit 65a768c

Browse files
Techassisbernauer
andcommitted
fix(stackable-versioned): Pass JSONPath variable by reference
Co-authored-by: Sebastian Bernauer <[email protected]>
1 parent a2f2486 commit 65a768c

File tree

1 file changed

+3
-3
lines changed
  • crates/stackable-versioned-macros/src/codegen/item

1 file changed

+3
-3
lines changed

crates/stackable-versioned-macros/src/codegen/item/field.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl VersionedField {
203203
);
204204

205205
Some(quote! {
206-
#to_ident: #from_struct_ident.#from_ident.tracking_into(status, #json_path_ident),
206+
#to_ident: #from_struct_ident.#from_ident.tracking_into(status, &#json_path_ident),
207207
})
208208
} else {
209209
Some(quote! {
@@ -224,7 +224,7 @@ impl VersionedField {
224224
);
225225

226226
Some(quote! {
227-
#from_ident: #from_struct_ident.#to_ident.tracking_into(status, #json_path_ident),
227+
#from_ident: #from_struct_ident.#to_ident.tracking_into(status, &#json_path_ident),
228228
})
229229
} else {
230230
Some(quote! {
@@ -250,7 +250,7 @@ impl VersionedField {
250250
);
251251

252252
Some(quote! {
253-
#next_field_ident: #from_struct_ident.#old_field_ident.tracking_into(status, #json_path_ident),
253+
#next_field_ident: #from_struct_ident.#old_field_ident.tracking_into(status, &#json_path_ident),
254254
})
255255
} else {
256256
Some(quote! {

0 commit comments

Comments
 (0)