summaryrefslogtreecommitdiff
path: root/macros/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-03-14 22:33:22 +0100
committerLaurenz <laurmaedje@gmail.com>2023-03-14 22:34:43 +0100
commit2a86e4db0bb3894d1cc3b94e1a1af31a6cd87b80 (patch)
treed5c0954ef779689c40eb9b2f58d477869546ea89 /macros/src
parente50189cfa75d83ea1b74b1dc2cf1fc9c01f8c825 (diff)
Reference supplements
Diffstat (limited to 'macros/src')
-rw-r--r--macros/src/node.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/macros/src/node.rs b/macros/src/node.rs
index 14856074..dfbd9078 100644
--- a/macros/src/node.rs
+++ b/macros/src/node.rs
@@ -433,19 +433,19 @@ fn create_construct_impl(node: &Node) -> TokenStream {
&& (!field.internal || field.parse.is_some())
})
.map(|field| {
- let with_ident = &field.with_ident;
+ let push_ident = &field.push_ident;
let (prefix, value) = create_field_parser(field);
if field.settable() {
quote! {
#prefix
if let Some(value) = #value {
- node = node.#with_ident(value);
+ node.#push_ident(value);
}
}
} else {
quote! {
#prefix
- node = node.#with_ident(#value);
+ node.#push_ident(#value);
}
}
});