diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-14 22:33:22 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-14 22:34:43 +0100 |
| commit | 2a86e4db0bb3894d1cc3b94e1a1af31a6cd87b80 (patch) | |
| tree | d5c0954ef779689c40eb9b2f58d477869546ea89 /macros | |
| parent | e50189cfa75d83ea1b74b1dc2cf1fc9c01f8c825 (diff) | |
Reference supplements
Diffstat (limited to 'macros')
| -rw-r--r-- | macros/src/node.rs | 6 |
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); } } }); |
