Closed tversteeg closed 4 months ago
When I copy this example:
#[component] fn SizeOf<T: Sized>(#[prop(optional)] _ty: PhantomData<T>) -> impl IntoView { std::mem::size_of::<T>() } #[component] pub fn App() -> impl IntoView { view! { <SizeOf<usize>/> <SizeOf<String>/> } }
And format it, the <usize> and <String> type parameters disappear:
<usize>
<String>
// ... #[component] pub fn App() -> impl IntoView { view! { <SizeOf/> <SizeOf/> } }
When I copy this example:
And format it, the
<usize>
and<String>
type parameters disappear: