Disambiguate expressions in rsx by requiring curlies
This commit is contained in:
53 files changed
+399
-373
No files matched your search
@@ -20,7 +20,7 @@ fn nested_passthru_creates() {
|
||||
|
||||
#[component]
|
||||
fn PassThru<'a>(cx: Scope<'a>, children: Element<'a>) -> Element {
|
||||
cx.render(rsx!(children))
|
||||
cx.render(rsx!({ children }))
|
||||
}
|
||||
|
||||
let mut dom = VirtualDom::new(App);
|
||||
@@ -60,7 +60,7 @@ fn nested_passthru_creates_add() {
|
||||
|
||||
#[component]
|
||||
fn ChildComp<'a>(cx: Scope, children: Element<'a>) -> Element {
|
||||
cx.render(rsx! { children })
|
||||
cx.render(rsx! { {children} })
|
||||
}
|
||||
|
||||
let mut dom = VirtualDom::new(App);
|
||||
|
||||
Reference in new issue
Block a user