Skip to content

Commit

Permalink
Fix clippy::let_unit_value lint in propless components (#2970)
Browse files Browse the repository at this point in the history
  • Loading branch information
WorldSEnder authored Dec 8, 2022
1 parent d37532f commit 9e980a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/yew-macro/src/html_tree/html_component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ impl ToTokens for HtmlComponent {
tokens.extend(quote_spanned! {ty_span=>
{
#use_close_tag
#[allow(clippy::let_unit_value)]
let __yew_props = #build_props;
::yew::virtual_dom::VChild::<#ty>::new(__yew_props, #key)
}
Expand Down

0 comments on commit 9e980a3

Please sign in to comment.