From e323bee7ee2a675e2610db67f3a8a0e77b7280ce Mon Sep 17 00:00:00 2001 From: Cecile Tonglet Date: Mon, 13 Nov 2023 08:52:56 +0100 Subject: [PATCH] Rename field phantom to __yew_autoprops_phantom --- src/autoprops.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/autoprops.rs b/src/autoprops.rs index 024b484..5126a7b 100644 --- a/src/autoprops.rs +++ b/src/autoprops.rs @@ -122,7 +122,7 @@ impl Autoprops { .collect::>(); let phantom = sig.generics.type_params().next().is_some().then(|| { quote! { - phantom: _, + __yew_autoprops_phantom: _, } }); quote! { @@ -190,7 +190,7 @@ impl Autoprops { let phantom = (!type_params.is_empty()).then(|| { quote! { #[prop_or_default] - #vis phantom: ::std::marker::PhantomData <( #(#type_params),* )>, + #vis __yew_autoprops_phantom: ::std::marker::PhantomData <( #(#type_params),* )>, } }); let fields_eq = sig