look out for a simple to optimize format case
This commit is contained in:
1 parent
aefa8a2431
commit
c9bd5a4e6e
5 files changed
+46
-5
No files matched your search
@@ -122,7 +122,7 @@ impl ToTokens for BodyNode {
|
||||
BodyNode::Element(el) => el.to_tokens(tokens),
|
||||
BodyNode::Component(comp) => comp.to_tokens(tokens),
|
||||
BodyNode::Text(txt) => tokens.append_all(quote! {
|
||||
::dioxus::core::DynamicNode::Text(::dioxus::core::VText::new(#txt.to_string()))
|
||||
::dioxus::core::DynamicNode::Text(::dioxus::core::VText::new(#txt))
|
||||
}),
|
||||
BodyNode::RawExpr(exp) => tokens.append_all(quote! {
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user