fix: Support Input::<..> style to for generic components

before that, we accepted this style `Input<..>` but to be consistent
with Rust syntax this is dropped now.

> For reference, the two ways of specifying explicit type parameters in
> Rust are:
> // for functions
> let _ = foo::<MyType>();
>
> // for structs
> let _ = Foo::<MyType> { ... };
>
> by @jkelleyrtp
This commit is contained in:
Muhannad Alrusayni committed 2022-06-04 13:40:50 +03:00
1 parent 5b079075d7
commit 690efade88
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -141,7 +141,7 @@ impl ToTokens for Component {
}
None => {
let mut toks = match prop_gen_args {
Some(gen_args) => quote! { fc_to_builder::#gen_args(#name) },
Some(gen_args) => quote! { fc_to_builder #gen_args(#name) },
None => quote! { fc_to_builder(#name) },
};
for field in &self.body {