aboutsummaryrefslogtreecommitdiff
path: root/mingling_macros/src/structural_data.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mingling_macros/src/structural_data.rs')
-rw-r--r--mingling_macros/src/structural_data.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/mingling_macros/src/structural_data.rs b/mingling_macros/src/structural_data.rs
index 593b52d..37fee0f 100644
--- a/mingling_macros/src/structural_data.rs
+++ b/mingling_macros/src/structural_data.rs
@@ -13,7 +13,7 @@ use crate::get_global_set;
/// will fail to compile if `Serialize` is not in scope or implemented.
///
/// Also registers the type name in the global `STRUCTURED_TYPES` registry so that
-/// the `general_render` match arm is generated by `gen_program!()`.
+/// the `structural_render` match arm is generated by `gen_program!()`.
pub(crate) fn derive_structural_data(input: TokenStream) -> TokenStream {
let input = parse_macro_input!(input as DeriveInput);
let type_name = input.ident;
@@ -65,8 +65,8 @@ pub(crate) fn pack_structural(input: TokenStream) -> TokenStream {
.unwrap()
.insert(type_name_str);
- // Struct definition (with Serialize derive, same as pack! under general_renderer)
- #[cfg(not(feature = "general_renderer"))]
+ // Struct definition (with Serialize derive, same as pack! under structural_renderer)
+ #[cfg(not(feature = "structural_renderer"))]
let struct_def = quote! {
#(#attrs)*
pub struct #type_name {
@@ -74,7 +74,7 @@ pub(crate) fn pack_structural(input: TokenStream) -> TokenStream {
}
};
- #[cfg(feature = "general_renderer")]
+ #[cfg(feature = "structural_renderer")]
let struct_def = quote! {
#(#attrs)*
#[derive(serde::Serialize)]