We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90f07d7 commit c06e1c3Copy full SHA for c06e1c3
packages/yew-macro/src/html_tree/html_component.rs
@@ -111,8 +111,11 @@ impl ToTokens for HtmlComponent {
111
let key = if let Some(key) = &special_props.key {
112
let value = &key.value;
113
quote_spanned! {value.span()=>
114
- #[allow(clippy::useless_conversion)]
115
- Some(::std::convert::Into::<::yew::virtual_dom::Key>::into(#value))
+ #[allow(unused_braces)]
+ {
116
+ #[allow(clippy::useless_conversion)]
117
+ Some(::std::convert::Into::<::yew::virtual_dom::Key>::into(#value))
118
+ }
119
}
120
} else {
121
quote! { ::std::option::Option::None }
0 commit comments