Disambiguate expressions in rsx by requiring curlies

This commit is contained in:
Jonathan Kelley committed 2024-01-10 19:33:34 -08:00
1 parent 663296ae45
commit d9b84f9f8f
53 files changed
+399 -373

No files matched your search

@@ -306,15 +306,10 @@ fn persist_removes() {
_ => unreachable!(),
};
render!(
div{
(0..children).map(|i|{
rsx!{
p{
key: "{i}",
"{i}"
}
}
})
div {
for i in 0..children {
p { key: "{i}", "{i}" }
}
}
)
}
@@ -387,15 +382,10 @@ fn persist_instertions_before() {
_ => unreachable!(),
};
render!(
div{
(0..children).map(|i|{
rsx!{
p{
key: "{i}",
"{i}"
}
}
})
div {
for i in 0..children {
p { key: "{i}", "{i}" }
}
}
)
}
@@ -446,14 +436,9 @@ fn persist_instertions_after() {
};
render!(
div{
(0..children).map(|i|{
rsx!{
p{
key: "{i}",
"{i}"
}
}
})
for i in 0..children {
p { key: "{i}", "{i}" }
}
}
)
}