Fix clippy::let_unit_value lint in propless components (#2970)

This commit is contained in:
WorldSEnder 2022-12-08 19:10:22 +00:00 committed by GitHub
parent d37532f5d9
commit 9e980a36b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}