You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
Functional (and possibly struct?) components with no props (such as the routes generated by create-yew-app) cause violations of clippy::let_unit_value at their use sites.
Steps To Reproduce
Steps to reproduce the behavior:
Write a functional component with no props
/// About page#[function_component(About)]pubfnabout() -> Html{html!{{"Todo"}}}
Functional components with no properties get () assigned implicitly as <_ as BaseComponent>::Properties, which I would think is the cause of having such a let binding when constructing them in e.g. html! { <About /> }. A shame that clippy sees through the type aliases :D Thanks for the report!
Problem
Functional (and possibly struct?) components with no props (such as the routes generated by create-yew-app) cause violations of
clippy::let_unit_value
at their use sites.Steps To Reproduce
Steps to reproduce the behavior:
html!
:cargo clippy -W clippy::pedantic
)Expected behavior
No lint warning
Environment:
parcel-plugin-wasm.rs
(shouldn't be relevant)Questionnaire
The text was updated successfully, but these errors were encountered: