Skip to content

Commit

Permalink
Removed unnecessary curly braces in element_to_token_ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
Ar4ys committed Feb 8, 2024
1 parent 4cd22c0 commit e7ddda3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions leptos_macro/src/view/server_template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,14 +385,14 @@ fn element_to_tokens_ssr(
})
}
chunks.push(SsrElementChunks::View(quote! {
::leptos::IntoView::into_view(#[allow(unused_braces)] {#block})
::leptos::IntoView::into_view(#block)
}));
}
}
// Keep invalid blocks for faster IDE diff (on user type)
Node::Block(block @ NodeBlock::Invalid { .. }) => {
chunks.push(SsrElementChunks::View(quote! {
::leptos::IntoView::into_view(#[allow(unused_braces)] {#block})
::leptos::IntoView::into_view(#block)
}));
}
Node::Fragment(_) => abort!(
Expand Down Expand Up @@ -473,7 +473,7 @@ fn attribute_to_tokens_ssr<'a>(
} else {
template.push_str("{}");
holes.push(quote! {
&::leptos::IntoAttribute::into_attribute(#[allow(unused_braces)] {#value})
&::leptos::IntoAttribute::into_attribute(#value)
.as_nameless_value_string()
.map(|a| ::std::format!(
"{}=\"{}\"",
Expand Down

0 comments on commit e7ddda3

Please sign in to comment.