Skip to content

Commit df251e3

Browse files
committed
Remove unnecessary unit when no props are provided
1 parent fd79b58 commit df251e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/yew-macro/src/autoprops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl Autoprops {
105105
let fn_name = &sig.ident;
106106
let (impl_generics, type_generics, where_clause) = sig.generics.split_for_impl();
107107
let inputs = if sig.inputs.is_empty() {
108-
quote! { (): &() }
108+
quote! {}
109109
} else {
110110
// NOTE: function components currently don't accept receivers, we're just passing the
111111
// information to the next macro to fail and give its own error message

0 commit comments

Comments
 (0)