Skip to content

Commit

Permalink
Rename field phantom to __yew_autoprops_phantom
Browse files Browse the repository at this point in the history
  • Loading branch information
cecton committed Nov 13, 2023
1 parent ad7c72a commit e323bee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/autoprops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl Autoprops {
.collect::<Vec<_>>();
let phantom = sig.generics.type_params().next().is_some().then(|| {
quote! {
phantom: _,
__yew_autoprops_phantom: _,
}
});
quote! {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e323bee

Please sign in to comment.