Skip to content

Commit 9e980a3

Browse files
authored
Fix clippy::let_unit_value lint in propless components (#2970)
1 parent d37532f commit 9e980a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/yew-macro/src/html_tree/html_component.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ impl ToTokens for HtmlComponent {
145145
tokens.extend(quote_spanned! {ty_span=>
146146
{
147147
#use_close_tag
148+
#[allow(clippy::let_unit_value)]
148149
let __yew_props = #build_props;
149150
::yew::virtual_dom::VChild::<#ty>::new(__yew_props, #key)
150151
}

0 commit comments

Comments
 (0)