Add space between rsx and exclamation point (#2956)
This commit is contained in:
1 parent
8d68886310
commit
c7124e41fb
20 files changed
+41
-41
No files matched your search
@@ -1,7 +1,7 @@
|
||||
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||
|
||||
//! Parse the root tokens in the rsx!{ } macro
|
||||
//! Parse the root tokens in the rsx! { } macro
|
||||
//! =========================================
|
||||
//!
|
||||
//! This parsing path emerges directly from the macro call, with `RsxRender` being the primary entrance into parsing.
|
||||
|
||||
@@ -501,7 +501,7 @@ fn template_generates() {
|
||||
"width2": 100,
|
||||
"height2": "100px",
|
||||
p { "hello world" }
|
||||
{(0..10).map(|i| rsx!{"{i}"})}
|
||||
{(0..10).map(|i| rsx! {"{i}"})}
|
||||
}
|
||||
div {
|
||||
width: 120,
|
||||
@@ -536,9 +536,9 @@ fn diffs_complex() {
|
||||
"width2": 100,
|
||||
"height2": "100px",
|
||||
p { "hello world" }
|
||||
{(0..10).map(|i| rsx!{"{i}"})},
|
||||
{(0..10).map(|i| rsx!{"{i}"})},
|
||||
{(0..11).map(|i| rsx!{"{i}"})},
|
||||
{(0..10).map(|i| rsx! {"{i}"})},
|
||||
{(0..10).map(|i| rsx! {"{i}"})},
|
||||
{(0..11).map(|i| rsx! {"{i}"})},
|
||||
Comp {}
|
||||
}
|
||||
};
|
||||
@@ -552,9 +552,9 @@ fn diffs_complex() {
|
||||
"height2": "100px",
|
||||
p { "hello world" }
|
||||
Comp {}
|
||||
{(0..10).map(|i| rsx!{"{i}"})},
|
||||
{(0..10).map(|i| rsx!{"{i}"})},
|
||||
{(0..11).map(|i| rsx!{"{i}"})},
|
||||
{(0..10).map(|i| rsx! {"{i}"})},
|
||||
{(0..10).map(|i| rsx! {"{i}"})},
|
||||
{(0..11).map(|i| rsx! {"{i}"})},
|
||||
}
|
||||
};
|
||||
|
||||
@@ -570,12 +570,12 @@ fn remove_node() {
|
||||
quote! {
|
||||
svg {
|
||||
Comp {}
|
||||
{(0..10).map(|i| rsx!{"{i}"})},
|
||||
{(0..10).map(|i| rsx! {"{i}"})},
|
||||
}
|
||||
},
|
||||
quote! {
|
||||
div {
|
||||
{(0..10).map(|i| rsx!{"{i}"})},
|
||||
{(0..10).map(|i| rsx! {"{i}"})},
|
||||
}
|
||||
},
|
||||
)
|
||||
|
||||
@@ -98,7 +98,7 @@ fn complex_kitchen_sink() {
|
||||
}
|
||||
})}
|
||||
}
|
||||
div { class: "px-4", {is_current.then(|| rsx!{ children })} }
|
||||
div { class: "px-4", {is_current.then(|| rsx! { children })} }
|
||||
}
|
||||
|
||||
// No nesting
|
||||
|
||||
Reference in new issue
Block a user