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

@@ -77,7 +77,7 @@ pub fn GoBackButton<'a>(cx: Scope<'a, HistoryButtonProps<'a>>) -> Element {
disabled: "{disabled}",
prevent_default: "onclick",
onclick: move |_| router.go_back(),
children
{children}
}
}
}
@@ -149,7 +149,7 @@ pub fn GoForwardButton<'a>(cx: Scope<'a, HistoryButtonProps<'a>>) -> Element {
disabled: "{disabled}",
prevent_default: "onclick",
onclick: move |_| router.go_forward(),
children
{children}
}
}
}
+2 -2
View File
@@ -167,7 +167,7 @@ impl Debug for LinkProps<'_> {
/// new_tab: true,
/// rel: "link_rel",
/// to: Route::Index {},
///
///
/// "A fully configured link"
/// }
/// }
@@ -250,7 +250,7 @@ pub fn Link<'a>(cx: Scope<'a, LinkProps<'a>>) -> Element {
id: "{id}",
rel: "{rel}",
target: "{tag_target}",
children
{children}
}
}
}