We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Imagine a component like so:
#[autoprops_component] pub fn Example<T: 'static>() -> Html { html! {} }
As T is not used, Rust complains:
T
parameter `T` is never used consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
Properties
At least, currently solvable with following code:
#[autoprops_component] pub fn Example<T: 'static>(#[prop_or_default] _never: &PhantomData<T>) -> Html { html! {} }
The text was updated successfully, but these errors were encountered:
Fixed in my port of yew-autoprops to Yew
Sorry, something went wrong.
Merge port of yew-autoprops in Yew to yew-autoprops (#10)
8c3bc87
Fixes #8 Fixes #7 Fixes #9 Fixes #3 Related to yewstack/yew#3505
Successfully merging a pull request may close this issue.
Imagine a component like so:
As
T
is not used, Rust complains:Properties
(generic) struct still generated despite having no props?At least, currently solvable with following code:
The text was updated successfully, but these errors were encountered: